DEV Community

Discussion on: How to optimize your php website(feat.Gzip Compression)

Collapse
 
elabftw profile image
eLabFTW

You're not talking about brotli!

Also, having a .htaccess in a folder is bad for performance (I believe the topic of this post).

The first of these is performance. When AllowOverride is set to allow the use of .htaccess files, httpd will look in every directory for .htaccess files. Thus, permitting .htaccessfiles causes a performance hit, whether or not you actually even use them! Also, the .htaccess file is loaded every time a document is requested.

From: haydenjames.io/disable-htaccess-ap...

Collapse
 
ham8821 profile image
Emma Ham • Edited

Good point! I will try to talk about brotli later in the next couple of posts! Thanks for your clarifcation!