File cached despite excluded?
-
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:
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 GMTUnfortunately, 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]
- You must be logged in to reply to this topic.