mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +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
|
||||
AddType audio/mp4 m4r
|
||||
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
|
||||
ExpiresActive On
|
||||
# ExpiresDefault A259200
|
||||
ExpiresDefault A259200
|
||||
|
||||
# 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
|
||||
Header append Cache-Control "public"
|
||||
SetOutputFilter NONE
|
||||
</FilesMatch>
|
||||
|
||||
# Set up 2 week caching on commonly updated files
|
||||
|
|
|
|||
Loading…
Reference in a new issue