• Resolved geekworkshopltd

    (@geekworkshopltd)


    Hi there!
    I’m using Autoptimize and to be honest I’m extremely happy with it. I’m wondering if you could spend a minute and give me a hand with AO?
    Currently there is a problem with CDN (I’m using BunnyCdn).
    The files minified by AO (css and js) are often not cached by the CDN. I have added the cdn url into AO (//cdn.geekworkshop.ca)
    My setup:
    AO (css, html, js ON)
    WP-rocket: only using for CDN
    SG optimizer: dynamic cache OFF

    Here is the report from GtMetrix (you can see that it took almost 1 second to load .js
    https://gtmetrix.com/reports/geekworkshop.ca/LVb9XPEK

    Also, is there a way to exclude a plugin from AO? I’m using a separate mobile menu and it’s not loading if AO is on.
    Thank you so much and sorry for bothering!
    Igor.

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

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

    (@optimizingmatters)

    hey @geekworkshopltd;
    regarding CDN, AO files are sent with a cache-control header in the HTTP response that allows long caching;
    cache-control: max-age=30672000, public, immutable, public

    so once fetched by the CDN, it _should_ be indeed cached there (as confirmed by a cdn-cache: HIT in the response header). So if you see regular cdn-cache: MISS instead, you should check with BunnyCDN (maybe they purge files from cache if not requested for X hours)?

    regarding excluding a plugin from AO, supposing you want to exlude the “whatever” plugin, adding wp-content/plugins/whatever to both the CSS and JS comma-separated exclusion lists should do the trick ??

    Hope this helps,
    frank

    Thread Starter geekworkshopltd

    (@geekworkshopltd)

    Hello sir!

    Thank you so much for such a fast reply, I do appreciate it!
    Regarding the CDN:
    I have contacted the company and YES – you were right, I have set up the settings wrong so the cache would expire every 1 hour (lol). Problem fixed ??

    As for the mobile menu – I have switched to a different one, excluded javascript from AO and all working flawlessly now.

    Thank you so much again!
    Best luck,
    Igor.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    happy it works, feel free to leave a review of the plugin and support here! ??

    have a nice day,
    frank

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Autoptimize CDN-Cache: miss’ is closed to new replies.