Index.html is retained even after deleting it on pages on custom domains

For Workers & Pages, what is the name of the domain?

What is the issue or error you’re encountering

old index.html is being retained

What are the steps to reproduce the issue?

publish a pages app with an index.html
move to a framework like remix that replaces the function handler.
remove the index.html

On you custom domain, the old index.html is retained

is showing the same issue

Did you read all the responses on the topic you referenced?

This is a cache issue that will resolve itself after a while.

How long? The same topic you referenced links to a Pages support article that says:

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.

1 Like

Try purging the Cloudflare cache, disabling the proxy in DNS settings, and enabling Development Mode. If the issue persists, redeploy the site and wait a bit. Let me know if it works