André Øien Langvand [EMAIL PROTECTED] writes:
Wonderful, however, doing this from the purge_hash() function still fails:
purge_hash(req.url # req.http.host #);
---###
Error: Expected ')' got '#'
Please submit a ticket. It would appear string concatenation
Wonderful, however, doing this from the purge_hash() function still fails:
purge_hash(req.url # req.http.host #);
---###
Error: Expected ')' got '#'
--
André Øien Langvand [EMAIL PROTECTED] - PGP: 0x7B1E3468
Systemadministrator - Idium AS - http://www.idium.no
obj.hash is very useful, thank you.
Sadly, using double quotes doesnt help.
purge_hash(req.url + # + req.http.host);
---#--
Error: Expected ')' got '+'
purge_hash(req.url + '#' + req.http.host);
-#
Error: Syntax error
André Øien Langvand [EMAIL PROTECTED] writes:
What I want is when a client sends e.g Pragma: no-cache, I want
warnish to fetch from backend and insert, not only do a pass.
In order to prevent Varnish from serving a cached object, you need to
purge it already in vcl_recv... which version are
André Øien Langvand [EMAIL PROTECTED] writes:
Yes, that was my thought. Besides an if (req.http.Pragma ~ no-cache)
in vcl_recv how can i purge the requested URL (and host)?.
purge_hash() and purge_url(), as documented in vcl(7).
DES
--
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS -
André Øien Langvand [EMAIL PROTECTED] writes:
Yep, and as mentioned in the first mail, I've tried to use both
req.url and req.http.host in diffrent combinations in purge_hash()
without any luck.
purge_hash() wants the object's hash string, which is something like
req.url + '#' + req.host. If
Thank you, that makes sense now. However, I am still not able to make it
work. E.g using purge_hash(req.url + '#' + req.http.host + '#$'); throws
me an syntax error, failing at the apostrophe ('). Also tried diffrent
variations of quotation marks and backslashes. Is the escaping wrong?
--
André
Thank you, that makes sense now. However, I am still not able to make it
work. E.g using purge_hash(req.url + '#' + req.http.host + '#$'); throws
me an syntax error, failing at the apostrophe ('). Also tried diffrent
variations of quotation marks and backslashes. Is the escaping wrong?
--
André
Anyone?
What I want is when a client sends e.g Pragma: no-cache, I want warnish
to fetch from backend and insert, not only do a pass.
--
André Øien Langvand [EMAIL PROTECTED] - PGP: 0x7B1E3468
Systemadministrator - Idium AS - http://www.idium.no
André Øien Langvand wrote:
Hi,
A few days