• Resolved Flux

    (@masterflux)


    Hello there ?? I am using the Autoptimize plugin since a few months and it works pretty fine. However, it often happens that I meet certain difficulties when I work with the website, some of them being beyond my knowledge. So here I am, seeking for help and insight ??
    The questions bothering me are:
    1) It occurred to me that some people, when revisiting our site would see it broken (since they had cached copies and days passed and I changed small things on the site in the meanwhile, like css). Since I’ll have to do some Adwords Retargeting too, won’t this affect returning visitors too? Isn’t Empty cache and Purge cache supposed to make returning visitors fetch the updated page? Is there any way to make sure they will see the page correctly? (I also have the SiteGround Optimizer for caching and A3 Lazy Load plugins installed, hope they work together)

    2) On Page Speed Insight, google keeps telling me to get rid of the Render Blocking JS stuff. Mainly from Autoptimize cache and Jquery. The “Aggregate js/css as static” is unchecked and SG Optimizer has Dynamic Cache. Any suggestions on how to improve the Page speed score (and site slow) on this ?

    3)The other stuff I use on the site as I said before are: Sg Optimizer ( Static Cache + Dynamic Cache + Memcached) and a3 Lazy Load for everything. Somehow, with the new google Insights, my page ranks at 20 score for Mobile ??
    Do any of the above plugins and settings interfer with each other or is it good to keep them all enabled? If I Purge/Master clear all caches, will the returning visitors see the updated page?

    So sorry for the long post, but it’s been days since these things bugged me out and couldn’t find an answer nor a solution to them. I really appreciate the insight and any help/suggestions I could get to improve not only the score, but the site speed and performance overall, specially the returning visitors cache part ??
    The site I need help with: Page Speed Insights RentWave

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    Morning Flux ??

    So here’s some feedback:
    1. there is page cache (which AO does not do) and the cached autoptimized JS/ CSS. AO will automattically update the optimized CSS/ JS when changes are detected. so assuming you purge your page cache (or you don’t have any), all should be fine
    2a. you can try removing js/jquery/jquery.js from the list of JS optimization exclusions and test if all still works, if not you simply re-add it?
    2b. for render-blocking CSS; look into “inline & defer CSS”, lots of info in the AO FAQ
    3. nice setup, should not interfere and when purging all caches your users should see the updated page (except if you have a setting that sets a HTTP header on the HTML that it can be cached, maybe SG optimizer does that?)

    hope this clarifies,
    frank

    Thread Starter Flux

    (@masterflux)

    Well… Inline and defer CSS breaks the site…guess i have too much css. And force JS in head…also breaks some basic things, like the Contact Form 7 add-ons (conditionals for CF7). So sadly this is not an option at the moment.
    I also tried the free Cluodflare plan included with siteground, enabled it from Cpanel but no improvement whatsoever. Do I have to manually enable it on Autoptimize? (AO states that i don’t have to do it for Cloudflare)
    EDIT: Removing Jquery from exclusions did fix the Jquery render block. The AO cached blocks still remain :v
    3) I have added this extra stuff as recommended by various optimizations on my htaccess file, could this be the problem with the visitors not getting an updated cached file?

    <IfModule mod_headers.c>
    <FilesMatch “.(js|css|xml|gz|html)$”>
    Header append Vary: Accept-Encoding
    </FilesMatch>
    </IfModule>
    ## END ACCEPT ENCODING ##
    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresByType text/css “access plus 14 days”
    ExpiresByType text/xml “access plus 0 seconds”
    ExpiresByType text/javascript “access plus 14 days”
    ExpiresByType application/x-javascript “access plus 14 days”
    ExpiresByType image/ico “access plus 14 days”
    ExpiresByType image/jpg “access plus 14 days”
    ExpiresByType image/jpeg “access plus 14 days”
    ExpiresByType image/gif “access plus 14 days”
    ExpiresByType image/png “access plus 14 days”
    ExpiresByType image/svg+xml “access plus 1 month”
    ExpiresByType text/html “access plus 14 days”
    ExpiresByType video/ogg “access plus 1 month”
    ExpiresByType audio/ogg “access plus 1 month”
    ExpiresByType video/mp4 “access plus 1 month”
    ExpiresByType video/webm “access plus 1 month”
    ExpiresByType application/x-font-woff “access plus 1 month”
    ExpiresByType application/vnd.ms-fontobject “access plus 1 month”
    ExpiresByType application/xml “access plus 0 seconds”
    ExpiresByType application/json “access plus 0 seconds”
    ExpiresByType application/rss+xml “access plus 1 hour”
    ExpiresByType application/atom+xml “access plus 1 hour”
    </IfModule>

    Very very thanks for the fast response. The least I can do is leave a good review ??

    • This reply was modified 6 years, 3 months ago by Flux.
    • This reply was modified 6 years, 3 months ago by Flux.
    • This reply was modified 6 years, 3 months ago by Flux.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    re. inline & defer: you might need to try to generate your critical CSS elsewhere.

    re. javascript: forcing all in head is not the way to go, but my point was you could try to remove js/jquery/jquery.js from the exclusions which would make it non-render-blocking ??

    re. cloudflare; no configuration needed in AO for that

    re. .htaccess: the following line might allow users to cache the pages for 14 days

    ExpiresByType text/html “access plus 14 days”

    so you might want to remove that ??

    and a good review is always welcome off course ??

    Thread Starter Flux

    (@masterflux)

    Thank you for your patience and taking your time to answer these long and painful questions ^_^

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cached files on returning visitors’ is closed to new replies.