Getting 403 errors when I clicked Test Cache button
-
Hello,
I am getting the following and not sure what is causing this. I was using WP-Fastest Cache and switched to WP-SuperCache because of the a Site Health check item could not detect presence of a page cache.
I am not at all sure how to fix it.
I installed WP-Super-Cache, clicked the Test Cache Button after getting it set up and I got the following:
Fetching https://www.mysite.org/ to prime cache: OK (0.html)
Fetching first copy of https://www.mysite.org/: OK (1.html)
Fetching second copy of https://www.mysite.org/: OK (2.html)
- Page 1: 403 (Forbidden)
- Page 2: 403 (Forbidden)
The pages do not match! Timestamps differ or were not found!
Things you can do:
- Load your homepage in a logged out browser, check the timestamp at the end of the html source. Load the page again and compare the timestamp. Caching is working if the timestamps match.
- Enable logging on the Debug page here. That should help you track down the problem.
- You should check Page 1 and Page 2 above for errors. Your local server configuration may not allow your website to access itself.
I did thing 1 and 2 and have yet to do thing 3. I think that is an issue with the hosting company, but before I go to them I want to make sure the issue with the site itself.
Coincidently, I am also getting this from Site Health
Your site could not complete a loopback request
Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability.
The loopback request returned an unexpected http status code, 403, it was not possible to determine if this will prevent features from working as expected.
Unable to detect the presence of page cache
Unable to detect page cache due to possible loopback request problem. Please verify that the loopback request test is passing. Error: Forbidden (Code: http_403)
Page cache enhances the speed and performance of your site by saving and serving static pages instead of calling for a page every time a user visits.
Page cache is detected by looking for an active page cache plugin as well as making three requests to the homepage and looking for one or more of the following HTTP client caching response headers:
cache-control
,expires
,age
,last-modified
,etag
,x-cache-enabled
,x-cache-disabled
,x-srcache-store-status
,x-srcache-fetch-status.
I also get this from the Site Health tool
You should use a persistent object cache
The hosting provider does not provide persistent object cache I was told by support.
I think they are all related.
Thank for any help you can provide.
- The topic ‘Getting 403 errors when I clicked Test Cache button’ is closed to new replies.