Created
June 7, 2019 06:51
-
-
Save tuannguyenminh2086/1860c6e99f862db5962afb7e10ada732 to your computer and use it in GitHub Desktop.
How to “Specify a cache validator”?
This file contains 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
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresDefault "access plus 1 year" | |
</IfModule> | |
// OR | |
<IfModule mod_headers.c> | |
<FilesMatch "\.(bmp|css|flv|gif|ico|jpg|jpeg|js|pdf|png|svg|swf|tif|tiff)$"> | |
Header set Last-Modified "Mon, 31 Aug 2009 00:00:00 GMT" | |
</FilesMatch> | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment