mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
17 lines
No EOL
490 B
ApacheConf
17 lines
No EOL
490 B
ApacheConf
AddType application/rss+xml rss
|
|
|
|
# Turn on Expires and set default expires to 3 days
|
|
ExpiresActive On
|
|
ExpiresDefault A259200
|
|
|
|
# Set up caching on media files for 1 month
|
|
<FilesMatch "\.(ico|gif|jpg|jpeg|png|pdf|mov|mp3)$">
|
|
ExpiresDefault A2419200
|
|
Header append Cache-Control "public"
|
|
</FilesMatch>
|
|
|
|
# Set up 2 Hour caching on commonly updated files
|
|
<FilesMatch "\.(xml|txt|html|js|css|rss)$">
|
|
ExpiresDefault A7200
|
|
Header append Cache-Control "private, must-revalidate"
|
|
</FilesMatch> |