I'm trying to debug my .htaccess
file, which contains:
<FilesMatch "\.(html|swf)$">
<IfModule mod_headers.c>
Header set Cache-Control "no-cache, public"
</IfModule>
</FilesMatch>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 month"
ExpiresByType text/html "access plus 0 seconds"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
</IfModule>
On repeated visits to the same webpage I see in Safari:
Name=Wrapper.html, Method=GET, Status=200 (OK), Type=text/html
Name=App.html, Method=GET, Status=200 (OK), Type=application/x-shockwave-flash
and for Chrome:
Name=Wrapper.html, Method=GET, Status=304 (not modified), Type=text/html
Name=App.html, Method=GET, Status=304 (not modified), Type=application/x-shockwave-flash
The problem is Safari downloads from server when it should retrieve from cache, whereas Chrome correctly retrieves from cache.
So, how do I get Status=304
from the server to Safari (as seen for Chrome)? (I'm guessing this is the root cause, let me know if not)
UPDATE
I just checked the cache file, and it seems Safari is not placing the downloaded files into the cache in the first place, for it to draw from upon future visits. Not sure why.