Created
July 14, 2020 19:42
-
-
Save shibbirweb/0947a934f90acad36f1a5d945c0c6dc5 to your computer and use it in GitHub Desktop.
Set file cache with expire time in Apache server
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
| #Create filter to match files you want to cache | |
| # 3 HOUR | |
| <FilesMatch "\.(txt|xml|js|css)$"> | |
| Header set Cache-Control "max-age=10800" | |
| </FilesMatch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment