• Resolved MrMattEastwood

    (@mrmatteastwood)


    Hello, WP-Optimize team! My client tells me they keep seeing old files when clicking on “Speiseplan” (“meal plan”) on certain pages on their website, e.g. on this one:

    https://opal-catering.de/einrichtung/albert-schweitzer-schule/

    We upload new meal plans every other week using FTP, overwriting the old files. That way, we can keep the same URLs on the buttons on all pages. So that’s why the client apparently gets old versions of the files delivered. So a few weeks ago, I added the following directive in WP-Optimize to exclude any files in the directory on the server where the PDFs are located:

    https://paste.pics/SA86O

    Still, today, the client told me they’re seeing the same problem again. Old meal plan. A colleague of mine sent me this snippet, saying it looks like the file is still cached:

    curl -I https://opal-catering.de/wp-content/uploads/speiseplaene/neue-schule.pdf
    HTTP/2 200
    server: nginx
    date: Thu, 31 Oct 2024 13:54:53 GMT
    content-type: application/pdf
    content-length: 375729
    x-accel-version: 0.01
    last-modified: Mon, 07 Oct 2024 10:58:58 GMT
    accept-ranges: bytes
    cache-control: max-age=2764800
    expires: Mon, 02 Dec 2024 13:54:53 GMT

    Unfortunately, I’m not smart enough to read this, but yeah, I mean the client is still complaining so I guess somehow the file still gets cached.

    What am I missing?

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • MasY10

    (@masy10)

    I got the same problem after the last update, JavaScript files are not excluded anymore from getting Minify. You have to turn off that option from now.

    Plugin Support wpmansour

    (@wpmansour)

    It looks like you’ve set up the exclusion in WP-Optimize correctly, so the issue likely stems from the “cache-control” header, which has a high duration (max-age=2764800). This duration can cause CDN services or other caching layers to continue serving old versions of the file.

    To resolve this, try reducing the cache-control duration in your CDN service provider settings. If you’re using another caching plugin, check if it’s setting cache-control headers and adjust the duration there. If these options aren’t available, contacting your hosting provider can also help, as they may have built-in caching that needs adjusting.

    This can vary based on your setup, so it’s worth checking each of these areas.

    Thread Starter MrMattEastwood

    (@mrmatteastwood)

    Thanks for your detailed response! No CDN or other caching plugins here, so it may be something on the hosting company’s side. I’ll look into that.

    Plugin Support wpmansour

    (@wpmansour)

    Glad to hear that you’re on it!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.