2
I know that the SetOutputFilter DEFLATE
has the function of compressing the file to be received by the browser.
I used this in my . htaccess to reduce file load time data.js
<FilesMatch "^(dados)\.js$">
SetOutputFilter DEFLATE
FileETag None
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Expires "Fri, 22 Aug 1980 22:08:00 GMT"
</FilesMatch>
The first part works the file is sent to the fastest browser ever on header set cache-control no-cache
is ignored.
A doubt, I did not understand "decrease the time", when you disable the cache actually the loading time is longer because you will have to download the file again instead of using Cache, you want to reduce the time or want to avoid Cache?
– Guilherme Nascimento
@Guilhermenascimento I want to avoid the cache, only that I added Setoutputfilter DEFLATE to stay 100/100 in Pagespeed Insights worked by half in some browsers the cache is not stored already in others a copy is sent. So as in life everything is a matter of choice left without the Setoutputfilter DEFLATE .
– Rose
I understand you refer to the Deflate to compress the answer, yet this will only reduce the size of the answer, does not mean it will be faster. Anyway I’ll test, really IE has some problems with the Headers.
– Guilherme Nascimento