Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Cache Clearing Reply To: Cache Clearing

#160203
__
Participant

The only way the user would know is if their cached copy has expired. If you are not setting an expiry deliberately, then it’s unlikely that their expiry is “correct” (meaning, the expiry you wanted).

Regardless of how the expiry is set, you can force the cached item to be ignored by passing a unique parameter in the URL (e.g., src=http://example.com/item.html?nocache={unique value}, where {unique value} is different each time-perhaps the current timestamp or some unique hash). This way, both the browser and intermediate servers assume that it’s a different resource (even though it might not be), and request it again.