1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Leverage browser caching

Discussion in 'Troubleshooting and Problems' started by Chad, Nov 10, 2015.

  1. Chad

    Chad Active Member

    Testing google page speed test. For desktop and mobile, it shows

    Leverage browser caching for the following cacheable resources:

        http://api.reftagger.com/v2/RefTagger.js (expiration not specified)
        https://www.biblegateway.com/votd/votd.write.callback.js (expiration not specified)
        http://www.gravatar.com/…Fxenforo%2Favatars%2Favatar_female_s.png (5 minutes)
        http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css (10 minutes)
        http://code.ionicframework.com/…onicons/2.0.1/fonts/ionicons.ttf?v=2.0.1 (10 minutes)
        https://apis.google.com/js/api.js (30 minutes)
        https://plus.google.com/js/client:plusone.js (30 minutes)
        https://oauth.googleusercontent.com/…e:rpc:shindig.random:shindig.sha1.js?c=2 (60 minutes)
        http://www.google-analytics.com/analytics.js (2 hours)
    I added below, still same score. Anyone have an idea why?

    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access 1 year"
    ExpiresByType image/jpeg "access 1 year"
    ExpiresByType image/gif "access 1 year"
    ExpiresByType image/png "access 1 year"
    ExpiresByType text/css "access 1 month"
    ExpiresByType text/html "access 1 month"
    ExpiresByType application/pdf "access 1 month"
    ExpiresByType text/x-javascript "access 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 1 month"
  2. Amin Sabet

    Amin Sabet Well-Known Member

    Those are 3rd party resources which you are not hosting. Nothing you can do about them as pertains to that score.
  3. audiokid

    audiokid Active Member

    Are either of these options secure or wise? I have no idea but it showed improvement.

    No cache:

    <IfModule mod_rewrite.c>
    Header set Cache-Control "no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires 0


    <IfModule mod_rewrite.c>
    <FilesMatch "\.(jpe?g|png|gif|js|css)$">
    ExpiresActive On
    ExpiresDefault "access plus 1 week"
    Last edited: Jan 25, 2017

Share This Page