DEV Community

Cover image for How to optimize your php website(feat.Gzip Compression)

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

Emma Ham on September 03, 2019

Have you ever experienced when you grind your soul to make this website beautiful and once you deploy it online, It just takes forever to load and ...
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!

Collapse
 
ionutbuzatu profile image
Ionut Buzatu

Hey!

Thanks for this trick for me was very helpful.
My site has had a very big speed improvement.

Collapse
 
ham8821 profile image
Emma Ham

Happy that it helped your project😊