Created
June 6, 2020 19:32
-
-
Save hasinhayder/f66deaca92debc97501cce69f36ad1c2 to your computer and use it in GitHub Desktop.
Apache Header Cache Control
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
<VirtualHost *:80> | |
DocumentRoot (Your root folder here) | |
ServerName (ServerName Details Here) | |
.. | |
<FilesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf|svg)$"> | |
Header set Cache-Control "max-age=31536000, public" | |
</FilesMatch> | |
.. | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment