0

I put it at the end of httpd.conf and nothing changed:

#Initialize mod_rewrite
RewriteEngine On
<FilesMatch "\.(html|htm|js|css)$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 12 Jan 1980 05:00:00 GMT"
</ifModule>
</FilesMatch>
Mercer
  • 113
  • 5
  • Please check this thread http://serverfault.com/questions/40205/how-do-i-disable-tomcat-caching-im-having-weird-static-file-problems it may solves your problem – Captain Linux Feb 10 '16 at 14:58
  • @CaptainLinux in my `server.xml`where i put the code ? – Mercer Feb 10 '16 at 15:20
  • First using firebug or similar see what headers come to your browser. Are you sure it's apache httpd that is caching? – Fredi Feb 10 '16 at 15:39
  • @Fredi when i see my headers i see is not httpd that is caching – Mercer Feb 10 '16 at 15:41
  • So the caching happens client side (browser)? What headers do your apache send to the browser? – Fredi Feb 10 '16 at 16:01

0 Answers0