Different people will get different results based on their browser settings, router settings, settings from the host, etc. It *should* just work bc the browser should know that the content has been updated.
Before you upload the new file, at least delete the old weekly.pdf before uploading the new one. If you have server side cacheing on your site or server, obviously remove it.
You can add a “cachebuster” query string to the URL, maybe something like:
$url .= '?v=' . filemtime('/path/to/pdf/file');
The query string will change every time you update the file, and browsers will then download a fresh copy of the file.
Thread Starter
WPUser
(@renik)
@diondesigns thank you. Where can I add that code?
It would be added to wherever the URL to the PDF file is defined. It could be in your theme or in a plugin, or perhaps even in a widget or shortcode. You’ll need to do some detective work. If it’s in generic code that defines several (or all) URLs, you’ll need to check whether it’s the URL to the PDF file before adding the cachebuster query string.
Good luck!