[Varnish] #1526: PURGE does not work on a 403 cached object
Varnish
varnish-bugs at varnish-cache.org
Fri Jun 13 20:55:47 CEST 2014
#1526: PURGE does not work on a 403 cached object
-------------------------+----------------------
Reporter: raymondjiii | Type: defect
Status: new | Priority: normal
Milestone: | Component: varnishd
Version: 3.0.5 | Severity: normal
Keywords: |
-------------------------+----------------------
To reproduce:
Make a request for a URL that will result in a 403 and that is cached:
In my example I use:
http://ec2-107-22-134-13.compute-1.amazonaws.com/svc/crosswords/v2/puzzle/daily-2014-04-22.puz?XWD=BASIC
This is saved in cache for 20 minutes within my VCL.
Then I can make a PURGE request for the same URL and the response from the
PURGE req is the same as for a GET request - the 403:
HTTP Response Code: 403
HTTP/1.1 403 Forbidden
Server: Apache/2.2.15 (CentOS)
X-Powered-By: PHP/5.4.27
Content-Type: application/json; charset=UTF-8
Content-Length: 56
Accept-Ranges: bytes
Date: Fri, 13 Jun 2014 18:43:04 GMT
X-Varnish: 1056486494
Age: 0
Via: 1.1 varnish
Connection: close
X-Cache: MISS
{"status":"ERROR","errors":["Not allowed"],"results":[]}
If the object is NOT in the cache (I restart Varnish) and issue a PURGE
request I get the normal PURGE miss response (using the same php curl code
to test):
HTTP Response Code: 200
HTTP/1.1 200 Purged - Miss
Server: Varnish
Content-Length: 20
Accept-Ranges: bytes
Date: Fri, 13 Jun 2014 18:44:31 GMT
X-Varnish: 1615046569
Age: 0
Via: 1.1 varnish
Connection: close
X-Cache: MISS
<p>Purged - Miss</p>
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1526>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list