We use the Files functionality in Marketing to host numerous PDF files, which are publically accessible via URLs. These PDFs sometimes get updated, and when they do we purposely just upload the new version and retain the same URL. We don’t want to put the version in the URL, as we want to ensure that anyone who has access to these PDFs always get the latest version.
Question: Is it possible to ensure that all users always view the latest version of the PDFs when accessing the URL?
For example, I know that browsers will cache PDFs locally to avoid a round trip to the server to re-download. However, this would mean that the older version is returned instead of the new version.
Ideally, I’m looking for a way to force all browser clients to ALWAYS download the PDF from the server, ensuring the latest version is always returned.
That being said, this wouldn’t cache the files stored locally on a visitors’ browsers. It may still be necessary for a visitor who saw the previous version of the file to clear their cache to view the new version.
“That being said, this wouldn’t cache the files stored locally on a visitors’ browsers. It may still be necessary for a visitor who saw the previous version of the file to clear their cache to view the new version.”
Yeah, this is the issue… I have no worries on the HubSpot server side that the files are being updated in a timely manner… I am worried that client browsers will have cached earlier versions of the files, and therefore not see the updates.
Has anyone else gone through this issue?
These are customer users so we really don’t have control over their behavior, nor would we want to instruct them to clear their browser cache every time they visit a PDF document…