bhalash/ouro.ie/master/.htaccess - Htaccess File

bhalash/ouro.ie/master/.htaccess

# Disable indexes
Options -Indexes

# Add minetypes for gzipping.
<IfModule mod_mime.c>
    AddType application/javascript js
    AddType application/vnd.ms-fontobject eot
    AddType application/x-font-ttf ttf ttc
    AddType font/opentype otf
    AddType application/x-font-woff woff
    AddType image/svg+xml svg svgz
    AddType video/mp4 mp4
    AddEncoding gzip svgz
</Ifmodule>

# Media cache control
<FilesMatch ".(ico|svg|woff|eot|ttf)$">
Header set Cache-Control "max-age=31536000, public"
</FilesMatch>

<FilesMatch ".(jpg|png|gif|css|js|mp4)$">
    Header set Cache-Control "max-age=604800, public"
</FilesMatch>

# Gzip media files.
<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
    AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
    AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
    AddOutputFilterByType DEFLATE image/svg+xml svg svgz
    AddOutputFilterByType DEFLATE video/mp4
</Ifmodule>

# Set expiry date on content.
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 1 month"
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType video/mp4 "access plus 1 month"
    ExpiresByType text/css "access 1 month"
    ExpiresByType application/javascript "access plus 1 year"
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE

Comments

Apache