A
A
Arman2018-06-11 10:44:23
Apache HTTP Server
Arman, 2018-06-11 10:44:23

Who understands .htaccess and response headers?

After a series of articles on the headings: https://habr.com/post/412813/ and https://habr.com/post/413205/
, I decided to seriously address this issue, and besides, pagespeed sagged a lot. I went around a bunch of articles, collected different options, until I met more or less what I wanted, namely https://github.com/h5bp/server-configs-apache/blob... . That's right, everything was collected for htaccess. projects are mostly on simple hostings, but there is also https://github.com/h5bp/server-configs-nginx for nginx.
one.
Confuses the volume of all this, if I'm not mistaken, then apache looks for each request, parses htaccess? wouldn't such a party girl be a problem? if so, how can this issue be resolved? okay, some headers in php can be sent, but how to distribute statics? Or maybe for folders with statics, separate htaccess can be collected where only by them - mime-types, cache, compress?
2. How is this .htaccess in general? maybe there was an experience with him, what ruled or what interfered?
3. If deflate compression is enabled, then it makes no sense to include gzip? Have you tried Brotli pre-compressed content? Is it worth it to cook at a gallop and include in the project?
can you add any other suggestions? I would like to implement once and then edit the little things if necessary.
Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Viktor Taran, 2018-06-11
@Arik

1. no, it won't, this is a small config, but of course it is redundant and with a margin.
1.1 most of what was written can simply be written in httpd.conf php.ini or vitrualhost where they belong.
2. you need to understand what exactly you want from it
3. you need to test the speed
https://klondike-studio.ru/standards/standartnyy-h...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question