Caching ScriptResource.axd files-

Tollef Fog Heen tfheen at
Mon Mar 30 13:40:04 CEST 2009

]] "Abu Syed Islam" 

| I am very new to Varnish and like to know how I could cache
| ScriptResource.axd files? The browsers making several call to this file
| per http page. But each call to ScriptResource.axd file generates
| different query strings-

Well, I don't know what that .axd file is, but if the content varies
with the query string, you can't really get rid of the query string.
Else, you could do something like

  set req.url = regsub(req.url, "\?.*", "")

in vcl_recv to strip the complete query string.

Tollef Fog Heen 
Redpill Linpro -- Changing the game!
t: +47 21 54 41 73

More information about the varnish-misc mailing list