Caching pages with URL parameters

pub crawler pubcrawler.com at gmail.com
Sun Jan 10 12:31:17 CET 2010


I wanted to describe this in better degree to see if anyone can
recommend a way to get Varnish caching these sorts of pages.

This page:
http://www.pubcrawler.com/Template/dsp_restaurant_zoom.cfm/flat/ID=460401

If I look at underlying data via curl:
HTTP/1.1 200 OK
Set-Cookie: CFID=12184891;expires=Tue, 03-Jan-2040 11:08:36 GMT;path=/
Set-Cookie: CFTOKEN=72775ccc0494d2bc-17EBD5E4-BC40-068E-077D1BBD2D49E203;expires=Tue,
03-Jan-2040 11:08:36 GMT;path=/
Set-Cookie: JSESSIONID=e030f11585446e200dcc4980397913a2b777;path=/
Set-Cookie: CFGLOBALS=urltoken%3DCFID%23%3D12184891%26CFTOKEN%23%3D72775ccc0494d2bc%2D17EBD5E4%2DBC40%2D068E%2D077D1BBD2D49E203%26jsessionid%23%3De030f11585446e200dcc4980397913a2b777%23lastvisit%3D%7Bts%20%272010%2D01%2D10%2006%3A08%3A36%27%7D%23timecreated%3D%7Bts%20%272010%2D01%2D10%2006%3A08%3A36%27%7D%23hitcount%3D2%23cftoken%3D72775ccc0494d2bc%2D17EBD5E4%2DBC40%2D068E%2D077D1BBD2D49E203%23cfid%3D12184891%23;expires=Tue,
03-Jan-2040 11:08:36 GMT;path=/
Set-Cookie: CFGLOBALS=urltoken%3DCFID%23%3D12184891%26CFTOKEN%23%3D72775ccc0494d2bc%2D17EBD5E4%2DBC40%2D068E%2D077D1BBD2D49E203%26jsessionid%23%3De030f11585446e200dcc4980397913a2b777%23lastvisit%3D%7Bts%20%272010%2D01%2D10%2006%3A08%3A36%27%7D%23timecreated%3D%7Bts%20%272010%2D01%2D10%2006%3A08%3A36%27%7D%23hitcount%3D2%23cftoken%3D72775ccc0494d2bc%2D17EBD5E4%2DBC40%2D068E%2D077D1BBD2D49E203%23cfid%3D12184891%23;expires=Tue,
03-Jan-2040 11:08:36 GMT;path=/
Content-Type: text/html; charset=UTF-8
Date: Sun, 10 Jan 2010 11:08:36 GMT
X-Varnish: 866839940
Age: 0
Via: 1.1 varnish
Connection: keep-alive


If I look at a page that Varnish does cache successfully:

http://www.pubcrawler.com/Template/index.cfm

HTTP/1.1 200 OK
Keep-Alive: timeout=15
Content-Type: text/html; charset=UTF-8
Content-Length: 84012
Date: Sun, 10 Jan 2010 11:12:50 GMT
X-Varnish: 866840383
Age: 10
Via: 1.1 varnish
Connection: keep-alive

I understand that the first page does have a bunch of cookies that are
causing Varnish to not cache this.

How do we get Varnish to ignore these cookies and cache it anyways?



More information about the varnish-misc mailing list