30 lines
1.0 KiB
ApacheConf
30 lines
1.0 KiB
ApacheConf
Options -Indexes
|
|
ServerSignature Off
|
|
|
|
AddType font/woff2 .woff2
|
|
|
|
<IfModule mod_deflate.c>
|
|
AddOutputFilterByType DEFLATE text/html text/css text/plain application/javascript image/svg+xml application/xml
|
|
</IfModule>
|
|
|
|
<IfModule mod_expires.c>
|
|
ExpiresActive On
|
|
ExpiresByType text/css "access plus 1 year"
|
|
ExpiresByType font/woff2 "access plus 1 year"
|
|
ExpiresByType image/gif "access plus 6 months"
|
|
ExpiresByType image/png "access plus 6 months"
|
|
ExpiresByType image/jpeg "access plus 6 months"
|
|
ExpiresByType image/svg+xml "access plus 6 months"
|
|
ExpiresByType image/x-icon "access plus 1 year"
|
|
ExpiresByType text/html "access plus 0 seconds"
|
|
</IfModule>
|
|
|
|
<IfModule mod_headers.c>
|
|
<FilesMatch "\.(woff2|css|gif|png|jpe?g|svg|ico)$">
|
|
Header set Cache-Control "public, max-age=31536000, immutable"
|
|
</FilesMatch>
|
|
<FilesMatch "\.(html|php)$">
|
|
Header set Cache-Control "no-cache"
|
|
</FilesMatch>
|
|
</IfModule>
|