leaberry/jekyll-udpl/master/.htaccess - Htaccess File

leaberry/jekyll-udpl/master/.htaccess

## Set default charset to utf8 or some text elements look odd
AddDefaultCharset UTF-8
## If you are running on a non apache box you need to add this line to your default.html and table.html
## right below the <head> tag
## <meta charset="utf-8">

## This enables browser level caching
## on ubuntu you need to run a2enmod expires
## To enable mod_expires
##
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
## We have cache busting on css and js files
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/x-javascript "access plus 1 year"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"

## The events.txt json file needs to be loaded frequently
ExpiresByType text/plain "access plus 15 minutes"
ExpiresByType text/html "access plus 15 minutes"
ExpiresDefault "access plus 1 days"
</IfModule>

## Gzip speeds up the events.txt load significantly
## Along with the javascript file loading
## Enable gzip (mod_deflate)
## Might need to run a2enmod deflate
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE

Comments

Apache