heubergen/z33_webpage/master/.htaccess
# New methode for expires after several intervals
ExpiresActive On
ExpiresByType text/html "access plus 1 weeks"
ExpiresByType application/ocsp-response "access plus 1 weeks"
ExpiresByType text/css "access plus 1 weeks"
ExpiresByType text/javascript "access plus 6 months"
ExpiresByType application/javascript "access plus 6 months"
ExpiresByType application/octet-stream "access plus 1 years"
ExpiresByType font/woff2 "access plus 1 years"
ExpiresByType image/vnd.microsoft.icon "access plus 1 years"
ExpiresByType image/jpeg "access plus 1 months"
ExpiresByType application/font-woff "access plus 1 years"
ExpiresByType font/woff "access plus 1 years"
# gzip Compression
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript application/xml application/xhtml+xml application/rss+xml
</ifmodule>
# Add Accept-Encoding header
<IfModule mod_headers.c>
Header set Vary "Accept-Encoding"
</IfModule>
# Activate HSTS
Header set Strict-Transport-Security "max-age=15778463" env=HTTPS
# Force https connections
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{ENV:HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
On Github License
Files