Cloudflare's caching can not be clear

What is the name of the domain?

What is the issue you’re encountering

“After deploying new files on dash.cloudflare.com, why can the pages in the original directory still be accessed? I adjusted the website’s directory structure, but Google keeps reporting duplicate pages, and the original links can indeed still be opened in browsers.” Would you like me to help explain why this happens with Cloudflare’s caching and how to resolve these duplicate page issues?

What steps have you taken to resolve the issue?

“After deploying new files on dash.cloudflare.com, why can the pages in the original directory still be accessed? I adjusted the website’s directory structure, but Google keeps reporting duplicate pages, and the original links can indeed still be opened in browsers.”
Would you like me to help explain why this happens with Cloudflare’s caching and how to resolve these duplicate page issues?

What are the steps to reproduce the issue?

“After deploying new files on dash.cloudflare.com, why can the pages in the original directory still be accessed? I adjusted the website’s directory structure, but Google keeps reporting duplicate pages, and the original links can indeed still be opened in browsers.”
Would you like me to help explain why this happens with Cloudflare’s caching and how to resolve these duplicate page issues?

Can you explain in a bit more detail what you did? Are you using Cloudflare Pages?

Can you also share some specific examples of files that shouldn’t be available anymore?

"All my pages are hosted on Cloudflare Pages without a dedicated server. I have a domain [www.coin-trade-bot.com] which is proxied to Cloudflare Pages.

The original directory structure was as follows, with three subdirectories under the root directory: zh, en, and zh-hant. There were no files in the root directory. When accessing the root domain, a redirect was set up to redirect to the zh directory.

/ ├── zh/ ├── en/ ├── zh-hant/

Later, I deleted the zh directory and moved its contents to the root directory, recompressed everything into a zip file, and deployed it to Cloudflare Pages. I also removed the redirect rule. Now when accessing www.coin-trade-bot.com, it directly accesses the pages in the root directory, which works fine - both pages and images display normally.

The current directory structure is:

/ ├── en/ ├── zh-hant/

The issue is that pages under 比特币自动交易助手 - 专业的加密货币自动交易软件 | 网格交易工具) can still be accessed, but many images don’t display correctly because their paths have changed. For example, 比特币自动交易助手 - 专业的加密货币自动交易软件 | 网格交易工具 should not be accessible anymore since the zh directory no longer exists.

Would you like me to explain why this is happening and how to resolve it with Cloudflare Pages?

“By the way, I’ve cleared the cache countless times, and even setting it to development mode doesn’t work. I can still access web pages that shouldn’t exist at all.”

According to this part of the docs, the files could remain for up to one week in Cloudflare’s cache:

You could redirect the /zh directory to the root directory to make sure files are no longer accessible under the old links.

This topic was automatically closed after 15 days. New replies are no longer allowed.