Home › Forums › Other › Cache Clearing › Reply To: Cache Clearing
January 12, 2014 at 7:03 pm
#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.