Pages that were removed are still showing up in Live Pages Deployment

I moved a page in my site from /contact-us/index.html to /company/contact-us/index.html After deploying, the new page is up and works great. However, the old page still exists and is still resolving and it should 404. I checked the deployment details > assets uploaded and the old page is not there. How do I get the old pages to "disappear" ?
2 Replies
Chaika
Chaika7mo ago
It's part of the Asset Retention Cache: https://developers.cloudflare.com/pages/configuration/serving-pages/#asset-retention
We will insert assets into the cache on a per-data center basis. Assets have a time-to-live (TTL) of one week but can also disappear at any time. If you do a new deploy, the assets could exist in that data center up to one week.
It lives on the pages.dev so no way for you to clear it You could stop requesting it and wait it out, and it should be evicted even before the week max if no traffic, or do something hacky with transform rule url rewrites and rewrite the specific url to /404, ex: hostname eq xxxx and path eq /contact-us/
kingmesal
kingmesalOP7mo ago
okay. Thanks for sharing that link. I have never come across that. Very helpful!
Want results from more Discord servers?
Add your server