Leverage browser cache

92 views
Skip to first unread message

Illyriansounds

unread,
Dec 21, 2015, 8:53:12 AM12/21/15
to pagespeed-insights-discuss
Hello,

Anyone any ideas on how to solve this ?

It is kind of ironic that google-analytics.com finds that there's a problem with their own scripts. :)


How would it be possible for me to control cache of external sources?


Rick Steinwand

unread,
Dec 22, 2015, 12:49:14 PM12/22/15
to pagespeed-insights-discuss
All you can do is copy them to your own server and hope it still works.

جيل تانى - Geel Tany

unread,
Aug 9, 2016, 11:36:50 PM8/9/16
to pagespeed-insights-discuss
Peace and mercy of God
You have the a blog?! Yeah
Now do you measure the speed of your blog?
What result?
Certainly got this problem
Leverage browser caching
Or the temporary storage of the browser
And, of course, will look for a solution to this problem
You will not find ...... Yes, there is something about the problem only on the platform WordPress

Now Measure speed of your blog
And that If you have found this problem

explain the solution to this problem 
in english and arabic language 


#Exclusively
#GeelTany

ZeroFrize

unread,
Aug 11, 2016, 9:46:15 AM8/11/16
to pagespeed-insights-discuss
For browser cashe add in your .htaccess this code

<ifModule mod_headers.c>
<FilesMatch "\.(html|htm)$">
Header set Cache-Control "max-age=43200"
</FilesMatch>
<FilesMatch "\.(js|css|txt)$">
Header set Cache-Control "max-age=604800"
</FilesMatch>
<FilesMatch "\.(flv|swf|ico|gif|jpg|jpeg|png)$">
Header set Cache-Control "max-age=2592000"
</FilesMatch>
<FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
Header unset Cache-Control
</FilesMatch>
</IfModule>
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 604800 seconds"
ExpiresByType application/javascript "access plus 604800 seconds"
ExpiresByType application/x-javascript "access plus 604800 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>

#And more coge for GZIP compress

<ifModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript
</ifModule>

понедельник, 21 декабря 2015 г., 15:53:12 UTC+2 пользователь Illyriansounds написал:
Reply all
Reply to author
Forward
0 new messages