Closed Aadarsh-Verma closed 1 year ago
hi @Aadarsh-Verma ,
this doesn't look like a bug so I'll close this.
in short:
synth(200, ...)
(either directly, or via the default vcl_purge
(https://github.com/varnishcache/varnish-cache/blob/master/bin/varnishd/builtin.vcl#L133-L136)), and those are held in the ~transient` storage (https://varnish-cache.org/docs/trunk/users-guide/storage-backends.html#transient-storage)Guru meditation
is created by the built-in vcl_synth
subroutine (https://github.com/varnishcache/varnish-cache/blob/master/bin/varnishd/builtin.vcl#L173-L191)
I get the following response on purging using x-key
I have used the file storage backend using this : varnishd -F -s disk=file,/var/lib/varnish/varnish_storage.bin,1G -f /etc/varnish/default.vcl -a:6085 and my purging logs are : `
` Don't know why my storage is malloc Transient in this case when I am using file type storage backend could be the source of the issue
my VCL file is
` sub vcl_recv { if (req.method == "PURGE") {
}
sub vcl_backend_response { // set beresp.storage = disk; set beresp.ttl = 0s; if(bereq.url ~ "date"){ unset beresp.http.Cache-Control; set beresp.http.Cache-Control = "public"; set beresp.ttl = 10m; set beresp.http.x-key = "date"; std.log("setting cache-control"); } } `