janispagel.de

Source code for https://janispagel.de
git clone git://git.janispagel.de/janispagel.de.git
Log | Files | Refs | README | LICENSE

.htaccess (1098B)


      1 RewriteEngine On
      2 RewriteCond %{HTTPS} off
      3 RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
      4 Header set Strict-Transport-Security: "max-age=63072000; includeSubDomains; preload"
      5 
      6 AddType text/plain .asc
      7 
      8 AddCharset utf-8 .html .txt .bib .ris
      9 
     10 # Gzip compression
     11 AddOutputFilterByType DEFLATE text/plain
     12 AddOutputFilterByType DEFLATE text/html
     13 AddOutputFilterByType DEFLATE text/xml
     14 AddOutputFilterByType DEFLATE text/css
     15 AddOutputFilterByType DEFLATE application/xml
     16 AddOutputFilterByType DEFLATE application/xhtml+xml
     17 AddOutputFilterByType DEFLATE application/rss+xml
     18 AddOutputFilterByType DEFLATE application/javascript
     19 AddOutputFilterByType DEFLATE application/x-javascript
     20 
     21 # Cache one month for image files
     22 <IfModule mod_expires.c>
     23   ExpiresActive On
     24   ExpiresDefault "access plus 300 seconds"
     25   ExpiresByType image/gif "access plus 1 month 1 hour"
     26   ExpiresByType image/jpg "access plus 1 month 1 hour"
     27   ExpiresByType image/jpeg "access plus 1 month 1 hour"
     28   ExpiresByType image/png "access plus 1 month 1 hour"
     29   ExpiresByType image/svg "access plus 1 month 1 hour"
     30 </IfModule>