Last active
December 14, 2017 17:30
-
-
Save topleague/e7f2d0edac1a21fb941109f8d515efd4 to your computer and use it in GitHub Desktop.
Leverage Browser 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
| #Set caching on image files for 11 months | |
| <filesMatch "\.(ico|gif|jpg|png|svg)$"> | |
| ExpiresActive On | |
| ExpiresDefault "access plus 11 month" | |
| Header append Cache-Control "public" | |
| </filesMatch> | |
| <filesMatch "\.(css|js)$"> | |
| ExpiresActive On | |
| ExpiresDefault "access plus 1 week" | |
| Header append Cache-Control "public" | |
| </filesMatch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment