Weird cache layer persist old contents of files served via webserver

Website URL

Account if0_38645297

Error Message

Old content displayed is for a really long duration, making development impossible,
deleting the file does redirects to 404.htm but creating an empty file shows the old content again.

Other Information

developing mode activated on cloudflare dash, tried purging cloudflare cache too, no cigar

Hi! Welcome to the forum! Have you tried using another browser?

9 Likes

Please share website url. Clear your browser cache too

9 Likes

I tried using different browser and devices, I cleared browser cache, added hostname to hosts -file to rule out cloudflare caching

Could you please provide:

  • Your website URL.
  • The specific page URL(s) where the old content is being displayed.
7 Likes

https://www.merchantguild.net/~ragnamart/lite/Pets.php


is this what it is supposed to show?

3 Likes

Please note the following:

  • Our hosting is configured for quite strong browser caching by default. That means that any static files (including HTML) will be cached by browsers for quite a long time. You should be able to see the updated version of your page through Incognito Mode in your browser.
  • If you use Cloudflare, then Cloudflare will also cache static content on your website. But Cloudflare only caches CSS, Javascript and images, not HTML content.

Since your page uses PHP code, the actual page content should not be cached by browsers or by Cloudflare. But any images, CSS or Javascript code may be cached.

To make sure you see the latest version of your website, you can enable Development Mode in Cloudflare to bypass caching on their end, and check your website in Incognito Mode to bypass any caching there too.

5 Likes

Here what u need to do
Make sure u are not using sw.js
The main 5his the main problem
Else use Ctr+ F5 to confirm u see 2 different content for ur project. If yes
Deleted your local cach and browsing data saved on local storage.
On eadge if u are using it click option u will find deleted browsing data. .
If non of this worked .
See in your code where it does have cash versions including

I already eliminated both cache layers, it is something else, it’s comming and going, I suspect it might be related to cloudflare caching or infinityfree is using some kind of varnish-cache but can’t pin it down definitively

Cloudflare caching can cause lots of problems. Infinity free don’t cache you’re site so it’s not that

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.