Htaccess File

pfolta/peterfolta.net/master/.htaccess

DirectoryIndex index.html

# Set Content-Security-Policy Header
<IfModule mod_headers.c>
    Header always set X-Frame-Options "DENY"
    Header always set Content-Security-Policy "default-src 'self' cdn.peterfolta.net; script-src 'self' 'unsafe-inline' piwik.peterfolta.net; img-src 'self' cdn.peterfolta.net piwik.peterfolta.net placehold.it placeholdit.imgix.net; report-uri pfolta.report-uri.io/r/default/csp/enforce"
</IfModule>

# Leverage Browser Caching
<IfModule mod_expires.c>
    ExpiresActive On

    <FilesMatch ".(htm|html)$">
        ExpiresActive Off
        Header set Expires: "-1"
        Header set Cache-Control: "max-age=0"
    </FilesMatch>

    ExpiresByType image/jpeg A2592000
    ExpiresByType image/png A2592000
    ExpiresByType image/vnd.microsoft.icon A2592000
    ExpiresByType text/css A2592000
    ExpiresByType text/javascript A2592000
</IfModule>
Exit mobile version