mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +00:00
finally figure out gzip for extensionless blog posts
This commit is contained in:
parent
0536cd6641
commit
dccdb5cf0f
1 changed files with 4 additions and 3 deletions
|
|
@ -1,16 +1,17 @@
|
||||||
DefaultType text/html
|
DefaultType text/html
|
||||||
AddType audio/mp4 m4r
|
AddType audio/mp4 m4r
|
||||||
AddType application/rss+xml rss
|
AddType application/rss+xml rss
|
||||||
AddOutputFilterByType DEFLATE text/plain application/rss+xml text/css application/javascript text/html
|
SetOutputFilter DEFLATE
|
||||||
|
|
||||||
# Turn on Expires and set default expires to 3 days
|
# Turn on Expires and set default expires to 3 days
|
||||||
ExpiresActive On
|
ExpiresActive On
|
||||||
# ExpiresDefault A259200
|
ExpiresDefault A259200
|
||||||
|
|
||||||
# Set up caching on media files for 1 month
|
# Set up caching on media files for 1 month
|
||||||
<FilesMatch "\.(ico|gif|jpg|jpeg|png|pdf|mov|mp3)$">
|
<FilesMatch "\.(ico|gif|jpg|jpeg|png|pdf|mov|mp3|m4r|m4a)$">
|
||||||
ExpiresDefault A2419200
|
ExpiresDefault A2419200
|
||||||
Header append Cache-Control "public"
|
Header append Cache-Control "public"
|
||||||
|
SetOutputFilter NONE
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
# Set up 2 week caching on commonly updated files
|
# Set up 2 week caching on commonly updated files
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue