deringer/voiteck-nocallcosts/master/.htaccess - Htaccess File

deringer/voiteck-nocallcosts/master/.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
</IfModule>

# Optimisations below
# Compress JavaScript and CSS files
<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
</IfModule>

# -----------------------------------------------------------------------
# Defining MIME types to ensure the web server actually knows about them.
# -----------------------------------------------------------------------
<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
    AddEncoding gzip                        svgz
</Ifmodule>

# -----------------------------------------------------------------------
# Compressing output.
# -----------------------------------------------------------------------
<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
</Ifmodule>

# Enable file caching
Header unset Pragma
FileETag None
Header unset ETag

# cache images/pdf docs for 30 days
<FilesMatch ".(ico|pdf|jpg|jpeg|png|gif)$">
    Header set Cache-Control "max-age=2592000, public, must-revalidate"
</FilesMatch>

# cache css/js for 30 days
<FilesMatch ".(css|js|ttf|woff)$">
    Header set Cache-Control "max-age=3153600, public, must-revalidate"
</FilesMatch>
☁  ~

On Github License

Files

Download PDF of Htaccess file
DEFLATE, Pragma, REQUEST_FILENAME

Comments

Apache