Created
July 24, 2019 12:36
-
-
Save renalpha/e39c8a8067b31c9c5a6ad944274b2755 to your computer and use it in GitHub Desktop.
Laravel - disable apache view caching
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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