Skip to content

Instantly share code, notes, and snippets.

@renalpha
Created July 24, 2019 12:36
Show Gist options
  • Save renalpha/e39c8a8067b31c9c5a6ad944274b2755 to your computer and use it in GitHub Desktop.
Save renalpha/e39c8a8067b31c9c5a6ad944274b2755 to your computer and use it in GitHub Desktop.
Laravel - disable apache view caching
#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment