This is an example of a page from one of my sites.
The highlighted one is matomo.js.
How can I reduce this time?
I added this .htaccess file to the matomo folder, but it doesn’t seem to have changed much …
#compressione gzip
<IfModule mod_deflate.c>
<IfModule mod_setenvif.c>
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
</IfModule>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
<FilesMatch ".(js|css|xml|gz|html)$">
Header append Vary: Accept-Encoding
</FilesMatch>
</IfModule>
AddOutputFilterByType DEFLATE text/plain text/html text/css application/javascript application/x-javascript text/javascript text/richtext image/svg+xml text/xsd text/xsl text/xml image/x-icon
</IfModule>
#cache
<ifModule mod_headers.c>
#Keep Alive
Header set Connection keep-alive
# 1 mese
<FilesMatch ".(js|css|swf)$">
Header set Cache-Control "max-age=2628000, public"
</FilesMatch>
</ifModule>
# Caching -- mod_expires
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/x-icon "now plus 1 year"
ExpiresByType application/pdf "now plus 1 year"
ExpiresByType image/gif "now plus 1 year"
ExpiresByType image/png "now plus 1 year"
ExpiresByType image/jpg "now plus 1 year"
ExpiresByType image/jpeg "now plus 1 year"
ExpiresByType text/css "now plus 1 month"
ExpiresByType application/javascript "now plus 1 month"
ExpiresByType application/x-javascript "now plus 1 month"
<FilesMatch "\.(pl|cgi|spl|scgi|fcgi)$">
ExpiresActive Off
</FilesMatch>
</IfModule>
Google seems to give increasing importance to download times, so it may be nice to reduce it as much as possible.