问题原文
原帖链接 · sam · CC BY-SA 4.0
We've just launched a new website. This was a complete redesign, including a change from a static HTML website, hosted on Server A, to a WordPress site hosted on Server B. (the relevance of that is server caching)
I've sent the new website to members of our team, some of whom haven't been on their computers since 20-Dec-2021 (its now 11-Jan-2022) and their computer has displayed the old website to them. The HTML of the old website gets served to them, but not the images. So in essence they get a broken site. They can get the new site by refreshing the page.
This is obviously some sort of caching issue, either browser or server, I'm not concerned about our team members, but am concerned about potential customers who have previously visited the site getting served the wrong and / or broken site.
The homepage URL is still the same (eg. https://example.com) so I can`t force them to see the new site that way.
Any ideas how I can force users who have previously visited the old site to see the new site?
Further info: I'm running a LAMP stack with Plesk.
社区高分解答
原帖链接 · davidgo · CC BY-SA 4.0
You are likely out of luck. There is nothing you can do to uncache a client other then wait out the caching period.
Delending on how bad the caching is, you may get some relief by using a different subdirectory, or, as @Stephencollins commented adding irrelevant parameters to the URL.
Alternatively you could launch the new site on a different domain.
I'd suggest the first step is to try ascertain how long the caching is /was being set for.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
