I know that SetOutputFilter DEFLATE
is meant to compress the file to be received by the browser.
I used this in my .htaccess to reduce the loading time of the data.js file.
<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 faster browser already in header set cache-control no-cache
is ignored.