Root URL not excluded
-
We are currently on the free version of Super Page Cache, 5.3.2, running on WordPress 7.0.3.
The website is multi-lingual and uses the Polylang plugin. The plugin is configured as following:
- Detect browser language setting is enabled
- The language is set from the directory name in pretty permalinks setting is enabled
- The front page URL contains the language code instead of the page name or page ID setting is enabled
- Hide URL language information for default language setting is disabled
So if the the website’s root URL (domain.com) is requested, Polylang detects the browser language and redirects to a matching language (e.g. domain.com/fr) or the default language (e.g. domain.com/en) if no match is found. This setup is working perfectly.
We set up Super Page Cache with default settings when the website went live. So far, so great.
However, a few weeks in, we noticed that the root URL suddenly returned a 404. error page for anonymous visitors.
We then added “/” in the Prevent the following URIs from being cached setting in the Super Page Cache plugin and purged the cache. Problem solved.However, today the root URL again returned a 404. We disabled Super Page Cache and the problem was solved. We then re-enabled the plugin and it is working again as intended.
Current state:
- After some back and forth with ChatGPT, we decided to upgrade Super Page Cache from 5.3.2 to 5.3.5. See the AI exchange here: https://chatgpt.com/share/6aaa672d-6bc4-83eb-871a-e4f8d7038110
- And we have implemented an uptime monitor that specifically checks for 404 status on the website homepage.
But of course we are very interested to see if we are overlooking anything, we stumbled onto a bug and / or if we can safely rely on Super Page cache in the future. Any insights or pointers are highly appreciated. Many thanks in advance!
You must be logged in to reply to this topic.