Czyszczenie cache po zmianach

synergiepolska

Avatar: synergiepolska

2021-01-13 10:05

Witam.

Wprowadziłem zmiany CSS-HTML w sklepie i teraz każdy kto wcześniej wchodził na sklep tych zmian nie ma. Oczywiście pomaga wyczyszczenie cache z poziomu klienta ale nie każdy klient to potrafi.
Czy jest jakiś sposób na zresetowanie pamięci z poziomu sklepu ?



-------------------------------------------------------------------------------------------------
[eng]

Hello.

I made CSS-HTML changes in the store and now everyone who has previously entered the store has no changes. Of course, clearing the cache from the client level helps, but not every client can do it.
Is there any way to reset the memory from the store?

» Quick.Cart v6.x

Karol

twh

Avatar: twh

2021-01-13 20:16

Hello, include _header.php <head> this:

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
or
<META HTTP-EQUIV="Expires" CONTENT="-1">

KR Dietmar

openzibi

Avatar: openzibi

2021-01-13 21:32

The cache is sometimes useful so another solution is automatically adding a "time stamp" to the name of style.css file or common.js for browser. (modification some files)
Example: on FTP we have standard name of file style.css but if the content of file was changed the browser will read "new name" file with time stamp like this: style.1610528163.css or common.1610126976.js etc. (in this situation will be not used old cache)

Zbyszek - StudioStrona.pl

Do góry
o nas | kontakt