htaccess
On top of Kirby CMS default content in .htaccess file there are few things we added.
Security option for Apache server
Options -Indexes
Kirby 3 Fingerprint plugin
And code needed for Kirby 3 Fingerprint plugin to work
# Fingerprint plugin
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.([0-9a-z]{32})\.(js|css)$ $1.$3 [L]
Browser caching
We didn't add and code for Browser caching, but for your production .htaccess it would probably be wise to add.
Resources you can look into for this:
Short explanation https://gtmetrix.com/leverage-browser-caching.html
Longer explanation https://varvy.com/pagespeed/cache-control.html
A large set of possible options https://github.com/h5bp/html5-boilerplate/blob/master/dist/.htaccess
But be careful, you should know what you are doing.
Last updated
Was this helpful?