martyn82/Dauri/master/public/.htaccess - Htaccess File

martyn82/Dauri/master/public/.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>

<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 1 seconds"
    ExpiresByType image/x-icon "access plus 2592000 seconds"
    ExpiresByType image/icon "access plus 2592000 seconds"
    ExpiresByType image/jpeg "access plus 2592000 seconds"
    ExpiresByType image/png "access plus 2592000 seconds"
    ExpiresByType image/gif "access plus 2592000 seconds"
    ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
    ExpiresByType text/css "access plus 31536000 seconds"
    ExpiresByType text/javascript "access plus 31536000 seconds"
    ExpiresByType application/javascript "access plus 31536000 seconds"
    ExpiresByType application/x-javascript "access plus 31536000 seconds"
</IfModule>

<IfModule mod_headers.c>
    Header unset ETag
    Header unset Last-Modified
</IfModule>

FileETag None

<IfModule mod_headers.c>
    <FilesMatch ".(ico|jpe?g|png|gif|swf)$">
        Header set Cache-Control "max-age=2592000, public"
        Header unset Set-Cookie
    </FilesMatch>
    <FilesMatch ".(css)$">
        Header set Cache-Control "max-age=604800, public"
        Header unset Set-Cookie
    </FilesMatch>
    <FilesMatch ".(js)$">
        Header set Cache-Control "max-age=216000, private"
        Header unset Set-Cookie
      </FilesMatch>
    <FilesMatch ".(x?html?|php)$">
        Header set Cache-Control "max-age=0, no-store"
    </FilesMatch>
</IfModule>

<IfModule mod_deflate.c>
    <FilesMatch ".(css|js|x?html?|php)$">
        SetOutputFilter DEFLATE
    </FilesMatch>
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, REQUEST_FILENAME

Comments

Apache