Dave Bishop
Hi Peter, I am not getting the error anymore but don't think the cache is being cleared. I only see a message saying Cache cleaned (142 bytes)
I asked SG to check if the cache is being cleaned and they said it's not.
When I press the "Clean Cache" option in the backend of your site I see the following request in the access log:
127.0.0.1 lmbo.org - [02/Apr/2023:18:00:56 +0000] "PURGE / HTTP/1.1" 200 154 "-" "curl/7.85.0" | - | - - 0.000 - 0 NC:000000 UP:-DT
This does not clean your cache, because when I test the following resource with a curl I get a "HIT", meaning there is a cached resource:
$ curl -sILX GET
lmbo.org/media/vendor/fontawesome-free/w.../fa-brands-400.woff2
| grep x-proxy-cache
x-proxy-cache: HIT
When I go to SiteTools -> Speed -> Caching -> Dynamic cache and flush the cache I see the following requests:
127.0.0.1 lmbo.org - [02/Apr/2023:18:04:53 +0000] "PURGE /* HTTP/1.1" 200 155 "-" "SiteGround Cache Flusher" | - | - - 0.000 - 0 NC:000000 UP:-DT
127.0.0.1 lmbo.org - [02/Apr/2023:18:04:53 +0000] "PURGE /* HTTP/1.1" 200 156 "-" "SiteGround Cache Flusher" | TLSv1.2 | - - 0.000 - 0 NC:000000 UP:-DT
These purge the cache successfully.
This is why the request I sent from localhost is:
$ curl -X PURGE http://127.0.0.1/* -H "Host: lmbo.org" --tlsv1.2
<html><head><title>Successful purge</title></head><body bgcolor="white"><center><h1>Successful purge</h1><p>Key : httplmbo.org/*</p></center></body></html>
This means sending the purge request from a localhost on http through tlsv1.2 and the result is a MISS:
$ curl -sILX GET
lmbo.org/media/vendor/fontawesome-free/w.../fa-brands-400.woff2
| grep x-proxy-cache
x-proxy-cache: MISS
This means purging the cache works.
Once this resource accessed once, it is cache and consecutive requests resound with a HIT.
Presently there is no way for you to follow the immediate access log and see the requests which are being made, however, you are more than welcome to send a curl request the way that I did. If you get a HIT after flushing the cache, then the cache is not flushed properly.
Overall: The "Clean Cache" sends a request to flush the cache, however, the request is not effective. The request should be made on --tlsv1.2 in order to properly flush the dynamic cache.