• Resolved Pierrot

    (@pierreto007)


    Hi,

    In other message you write:

    “Apparantly, your server (or caching plugin) has the browser cache for set to 2 days for JS-files.

    Try adjusting the settings of your browser cache (usually located in your.htaccess file) or try a different caching plugin (I suggest wp fastest cache or W3TC if you’re on vps or dedicated server). ”

    I think i have same problem, it’s about this file, isn’t it?

    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault “access plus 5 seconds”
    ExpiresByType image/x-icon “access plus 2500000 seconds”
    ExpiresByType image/jpeg “access plus 2500000 seconds”
    ExpiresByType image/png “access plus 2500000 seconds”
    ExpiresByType image/gif “access plus 2500000 seconds”
    ExpiresByType application/x-shockwave-flash “access plus 2500000 seconds”
    ExpiresByType text/css “access plus 700000 seconds”
    ExpiresByType text/javascript “access plus 700000 seconds”
    ExpiresByType application/javascript “access plus 700000 seconds”
    ExpiresByType application/x-javascript “access plus 700000 seconds”
    ExpiresByType text/html “access plus 600 seconds”
    ExpiresByType application/xhtml+xml “access plus 600 seconds”
    ExpiresByType font/truetype “access plus 2500000 seconds”
    ExpiresByType font/opentype “access plus 2500000 seconds”
    ExpiresByType application/x-font-woff “access plus 2500000 seconds”
    ExpiresByType image/svg+xml “access plus 2500000 seconds”
    ExpiresByType application/vnd.ms-fontobject “access plus 2500000 seconds”
    </IfModule>
    # END Expire headers

    And if yes, what is the good setting?
    Thanks!

    • This topic was modified 9 years, 5 months ago by Pierrot.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    According to your htaccess file, you’ve everything involving javascript set to a cache time of 700000 seconds, which translates to about 8 days. This should be good enough, right? If Pagespeed is still giving you issues, try setting it to a month, or 2678400 seconds.

    What cache time is Google Pagespeed saying you’ve got the local-ga.js file set to? If this isn’t 8 days, then you’re server isn’t using your htaccess file. Are you using Apache or Nginx?

    Thread Starter Pierrot

    (@pierreto007)

    Hi Danosz,

    My problem it’s not with pagespeed.
    I can see google code on my page but now i have no result from Google analytics, just visit from AMP page (who have their analytic code.
    I’m inserver, Apache.
    In page speed, i don’t find anything about the local-ga.js file.

    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    It’s strange that you don’t get any results from Analytics. Maybe something changed in the tracking code. I’ll look into it and get back to you.

    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    The plugin seems to work for as far that I can see. So that would mean that the script is intact.

    Are you loading it in the footer? Try loading it in the header instead.

    Thread Starter Pierrot

    (@pierreto007)

    Hi,
    Thanks for reponse, i try to understand why he don’t work with my website but it’s difficult, i’m not english speaker, and i finaly stop to use it.

    I want contact you but your website have security problem.

    Plugin Author Daan van den Bergh

    (@daanvandenbergh)

    Yes, my website had some security issue, because I forgot to renew my Let’s Encrypt-certificatie 😀 But it works now. If you want to contact me, you can use the contact form on my website. Perhaps you can leave some more details about your website there.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘How to change browser cache’ is closed to new replies.