Pages routes that not exists anymore are being served

This routes are acessible even with 200 curl response: https://mixvbs.com/ar-tc-cencosudtc-p1/ https://mixvbs.com/us-cc-citirewardscc-p1/ But they doesnt exists anymore. The project is generated with static files by Astro to Cloudflare Pages. I already tried purging specific route cache and everything, but its not working, the routes still being accessible. If you try acessing them without trailing slash, it works, giving 404 error: https://mixvbs.com/ar-tc-cencosudtc-p1 https://mixvbs.com/us-cc-citirewardscc-p1 We couldnt figure out what it could be. Can get some help please?
6 Replies
Walshy
Walshy2mo ago
404s for me, you'll be hitting asset preservation cache - https://developers.cloudflare.com/pages/configuration/serving-pages/#asset-retention just don't hit them and they'll disappear
Santho
SanthoOP2mo ago
Strange. You got 404 with de trailing slash? I didnt know this Asset cache. All the routes are being cached in the preservation for 7 days?
Walshy
Walshy2mo ago
yes and yes, on request we put into colo-local cache for up to 7 days. It can and very likely will be purged before that based on things like demand. In your case, you hit the file, deployed a new ver and hit it again getting the cached version. If you don't hit it, it'll fall out of cache
Santho
SanthoOP2mo ago
Humm i see. I tried purged the entire domain cache a few times, and even activade Develop mode to bypass cache. But the routes still being accesible. Is it ok?
Walshy
Walshy2mo ago
Different cache unfortunately but yeah, it'll leave cache in time, hitting the url keeps it in cache more so i'd just not visit it haha
Santho
SanthoOP2mo ago
Hhahah got it! Lets keep it cool in the weekend Thanks a lot for the help!!

Did you find this page helpful?