Note that there are some explanatory texts on larger screens.

plurals
  1. POFirefox doesn´t overwrite cache on reload
    text
    copied!<p>I have a problem: I use Firefox V 22.0 and with .htaccess I try to cache all files on my website, but overwrite the cache if the files are modified. In Chrome all works well, but in Firefox the cache will not overwrite even if the files are modified. You can try a live example with the following code: .htaccess:</p> <pre><code>&lt;ifmodule mod_headers.c&gt; Header set imagetoolbar "no" &lt;filesmatch "\\.(ico|jpe?g|png|gif|swf)$"&gt; Header set Cache-Control "max-age=2592000, public" &lt;/filesmatch&gt; &lt;filesmatch "\\.(css)$"&gt; Header set Cache-Control "max-age=216000, public" &lt;/filesmatch&gt; &lt;filesmatch "\\.(js)$"&gt; Header set Cache-Control "max-age=216000, private" &lt;/filesmatch&gt; &lt;filesmatch "\\.(x?html?|php)$"&gt; Header set Cache-Control "max-age=600, private, must-revalidate" &lt;/filesmatch&gt; &lt;/ifmodule&gt; &lt;IfModule mod_expires.c&gt; ExpiresActive On ExpiresByType text/css "modification plus 1 week" ExpiresByType text/javascript "modification plus 1 week" ExpiresByType text/html "modification plus 1 month" ExpiresByType application/javascript "modification plus 1 week" ExpiresByType application/x-javascript "modification plus 1 week" ExpiresByType application/xhtml-xml "modification plus 600 seconds" ExpiresByType image/gif "modification plus 1 month" ExpiresByType image/jpeg "modification plus 1 month" ExpiresByType image/png "modification plus 1 month" ExpiresByType image/x-icon "modification plus 1 month" &lt;/IfModule&gt; </code></pre> <p>Create a span-tag in a html-file and then in an external file give this span-tag a style, e.g. a background-color. Then open the page in the browser. Next change the span-background-color. After that open the site again WITHOUT refresh (f5), only tipping the url in the field. You will see that the color is as you have set at the first time.</p> <p>So, I want that if the file is modified, the cache will overwrite with the new file. Is there a way to do this? I searched a little bit, one guy said that this is because of the feauture that allows clients to complete a form even if the form was on a different tab in firefox. I don´t think so but I didn´t find any other solution.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload