A URL Points to a Wrong File

Last updated: 2023-09-14 18:19:03

Problem

Symptom 1: A single URL points to different files.
Symptom 2: After I updated a file, I still accessed the old version of it.

Possible Cause

The Content Delivery Network (CDN) cache has not expired.
The browser did not disable cache.
The accessed file is hijacked. As a result, the accessed file content is not as expected.

Instructions

Check whether the CDN cache has expired

Check whether the CDN cache has expired as instructed in Cache Configuration FAQs.
If not, purge CDN URLs or directories by referring to Purge Cache.

Check whether your browser has disabled cache

Note
The following operations use Google Chrome as an example.
1. Open Chrome.
2. Press F12 to open the Developer tools.
3. Select the Network tab and check if Disable cache is selected.

If not, select Disable cache and restart the browser.

Check whether the file is hijacked

If the file accessed is not as expected (for example, the content-length or response headers are not as expected), your file has been hijacked. In this case, you are advised to access it over HTTPS.