Re: CACHE_MUST_REVALIDATE
"Ming Fu" <[email protected]>
| Newsgroups | gmane.comp.web.polipo.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Juliusz,
Here is the traffic that lead me to look into how to make polipo NOT reply
from cache. You can see from the protocol trace that the client is
requesting to the same url, but each time it gets a different reply. This is
captured without proxy. The tcpdump is attached in gzip format.
==== Begin ======
GET /cftr HTTP/1.1
Accept: */*
User-Agent: NSPlayer/10.0.0.3646
Host: 38.99.208.186
X-Accept-Authentication: Negotiate, NTLM, Digest, Basic
Pragma: version11-enabled=1
Pragma:
no-cache,rate=1.000,stream-time=0,stream-offset=0:0,packet-num=4294967295,max-duration=0
Pragma: packet-pair-experiment=1
Pragma: pipeline-experiment=1
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch,
com.microsoft.wm.predstrm, com.microsoft.wm.startupprofile
Pragma: xClientGUID={3300AD50-2C39-46c0-AE0A-01DA84E85713}
Accept-Language: en-US, *;q=0.1
HTTP/1.1 200 OK
Pragma: packet-pair-experiment=1, no-cache, pipeline-experiment=1,
client-id=3865030889, xResetStrm=1, features="broadcast,playlist",
timeout=600000
Content-Type: application/vnd.ms.wms-hdr.asfv1
Server: Cougar/9.01.01.3862
Content-Length: 8078
Date: Fri, 05 Dec 2008 15:22:50 GMT
Cache-Control: no-cache, max-age=86399, x-wms-stream-type="broadcast,
playlist", user-public, must-revalidate, x-wms-proxy-split
Last-Modified: Fri, 04 May 2007 11:31:13 GMT
Etag: "322"
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch,
com.microsoft.wm.predstrm, com.microsoft.wm.fastcache,
com.microsoft.wm.startupprofile
$P......$P......&......6$P..........&...0.i.-....3TFbH...#D..]g...8F..X.M.M*...
...B.u....r..U .Z\D..[.j([email protected].
..jDvljV.........-6....1.la
&.d.G.$*E..V.28`]R]Dm...q......[j.o...&a..}A.!....$.._.......].CSu>B..;M..fS.#....b..U......l.../99A....O.w...3"...n...|w@
.u.....N.3|.r..(..X7..?K-eX.....\...^..=d....S..........*...u.,W.?u.Z....)aWpJty9.....'.5.Wj.rM....k.@[.L..3B.+R....Ql..E,.r..eG..=..#.%..%..r.{TF.....9.jnGg....Fg.d...R..PDT.[.................S|...NiC.c.T^..BC.
.k7."...^E-fzt.S7...?.........4.i..QUfDU..$P.......>.........I
..w$P.......KqLt.YCZZ.C.o>..D......3.....VN)[email protected]@@%.kL.`p.u.5S
,..f..:...M.@
.1...............K....m..x./..._:.a..7f...s.....7...xq,...8\b.HE...h...i.y....l.......?.H..0L.....Z..."....}87..._w...T8IG..S...4.....Y..?....p.....b.[..=:...b...S%.
QjyV..t....|..x..OSL..v.C..$.A...N.....C.....x.4....~.j.,e....-...c.3...p....@
.l`..{Q.*?m....
..0..M.....!.u..!.c......!$\b...9..7..A....LSL7/N..o.u..y...
BW...)_...f.k?...
.TyR.......r....>.m&..^.r..JF?<.P.....$
.>C......pv.f..F,..)i..'.....g....s.~.....>..'.'.i...^..OD..;....^..$.W.b.z...\h.......w.e_.<2.......*...6K...!.....k....4.&.................COgo........k.;D#.....2..Z..S.'.4...5Z*).m.N.
.i..l[..vaKt..H.....F...+ha..0s.....7.M
.>]kLu..j.....I..u..V...F....k.b..F.<.gy+..s.....I.D'o>.D....6`.......'z...k./.h....na2s..iP...gO...,../%.....
..V.v..-.n..ke...]".y...b.K.+..P
.....a./R
...t}..o..Xm.J...{t...ahq.......W..q..-..a.0......L(G.....}...;y.?...0 .
f~.. C..|.s.'.w'u........l.....J`..6Kp<.X#..(.Y^.Y}...>p.EZO..@5.
..2.Wck.....9....;..5.P...j.$P..............-.Sm..j..@)|..K.........m'3.W.y..mL.......!..*.-D....6..
.n...._.*JDu..p....T.GY...
.k...],B.........U+...z0..Y...3.s..E.....|.......de..V.z.....8..3..c.)..p..+qZ..]'.<+...w)......,.g....r.........I.B7......j..f..I....>&.....RH/....O/.z..H...f...|..b2.h.!..sG.....D'
^>N.Sk[.......g!.tt.....$g,
..
.&wY.j..E......].Im+..4Q..<u.]..<.z...b...,<..M.iSX.V.....\..z..9.;v..../....W...C[..}...>.......v.....X...).y......^...9B[x..5..E}-...t|g...S.u_I..
...S.4..-0.h...RJ....,u....kJ..[..;p.....$ME.......E.playlist-gen-id=197701569,
broadcast-id=5193798,
features="broadcast,playlist".8,language,31,0,,5,title,31,8,680
NEWS,6,author,31,26,Rogers Broadcasting Limted,9,copyright,31,27,Rogers
Broadcasting Limited,35,WMS_CONTENT_DESCRIPTION_DESCRIPTION,31,11,680 NEWS
AM,44,WMS_CONTENT_DESCRIPTION_SERVER_BRANDING_INFO,31,12,WMServer/9.1,51,WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_START_OFFSET,3,4,2433,47,WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_DURATION,3,1,0,58,WMS_CONTENT_DESCRIPTION_COPIED_METADATA_FROM_PLAYLIST_FILE,3,1,1,42,WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_URL,31,1,/
$H!.......!.0&.u.f.......b.l..............3&.u.f.......b.l..........6.8.....6.8.0.
.N.E.W.S...R.o.g.e.r.s. .B.r.o.a.d.c.a.s.t.i.n.g.
.L.i.m.t.e.d...R.o.g.e.r.s. .B.r.o.a.d.c.a.s.t.i.n.g.
.L.i.m.i.t.e.d...6.8.0. .N.E.W.S. .A.M...@
............^.P............W.M.F.S.D.K.V.e.r.s.i.o.n.......1.0...0.0...0.0...4.0.5.4.....W.M.F.S.D.K.N.e.e.d.e.d.......0...0...0.I.s.V.B.R...........@R...1........H.........AR...1........H.........W.i.n.d.o.w.s.
.M.e.d.i.a. .A.u.d.i.o. .9...1...$. .4.0. .k.b.p.s.,. .3.2. .k.H.z.,.
.s.t.e.r.e.o. .1.-.p.a.s.s. .C.B.R.....a..u.{.F.....`....
...................G........
Seh...........?&.D..M..n.O........0.8m......................................................._.........
Se.....................
Se.......FC|...K.)9>.A\.'..........e.n.-.u.s........[wH.g..D.L.......................I.s.V.B.R.........4.......D.e.v.i.c.e.C.o.n.f.o.r.m.a.n.c.e.T.e.m.p.l.a.t.e...L.2...............W.M./.W.M.A.D.R.C.P.e.a.k.R.e.f.e.r.e.n.c.e....X......4.......W.M./.W.M.A.D.R.C.A.v.e.r.a.g.e.R.e.f.e.r.e.n.c.e...........r.2C...iR.[ZX.......................@...........@...................................]..&.E.G._.e..R...........t......E...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
[email protected][......_\D+P....a.........
...................b.la....}..........
........%..........6&.u.f.......b.l2...........?&.D..M..n.O..........
GET /cftr HTTP/1.1
Accept: */*
User-Agent: NSPlayer/10.0.0.3646
Host: 38.99.208.186
Pragma: pipeline-request=1
Pragma: client-id=3865030889
Connection: keep-alive
HTTP/1.1 200 OK
Server: Cougar/9.01.01.3862
Date: Fri, 05 Dec 2008 15:22:50 GMT
Pragma: no-cache, client-id=3865030889, features="broadcast,playlist",
timeout=600000
Cache-Control: no-cache, max-age=86399, x-wms-stream-type="broadcast,
playlist", user-public, must-revalidate, x-wms-proxy-split
Last-Modified: Fri, 04 May 2007 11:31:13 GMT
Etag: "322"
Transfer-Encoding: chunked
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch,
com.microsoft.wm.predstrm, com.microsoft.wm.fastcache,
com.microsoft.wm.startupprofile
4
$T..
GET /cftr HTTP/1.1
Accept: */*
User-Agent: NSPlayer/10.0.0.3646
Host: 38.99.208.186
Pragma: pipeline-request=1
Pragma: client-id=3865030889
Connection: keep-alive
0
HTTP/1.1 200 OK
Server: Cougar/9.01.01.3862
Date: Fri, 05 Dec 2008 15:22:50 GMT
Pragma: no-cache, pipeline-result=1, client-id=3865030889,
features="broadcast,playlist", timeout=600000
Cache-Control: no-cache, max-age=86399, x-wms-stream-type="broadcast,
playlist", user-public, must-revalidate, x-wms-proxy-split
Last-Modified: Fri, 04 May 2007 11:31:13 GMT
Etag: "322"
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch,
com.microsoft.wm.predstrm, com.microsoft.wm.fastcache,
com.microsoft.wm.startupprofile
Content-Length: 0
GET /cftr HTTP/1.1
Accept: */*
User-Agent: NSPlayer/10.0.0.3646
Host: 38.99.208.186
Referer: http://www.680news.com/listen/listen-live/
X-Accept-Authentication: Negotiate, NTLM, Digest, Basic
Pragma: version11-enabled=1
Pragma:
no-cache,rate=1.000,stream-time=0,stream-offset=4294967295:4294967295,packet-num=4294967295,max-duration=0
Pragma: xPlayStrm=1
Pragma: client-id=3865030889
Pragma: LinkBW=1365977, AccelBW=2147483647, AccelDuration=18000
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch,
com.microsoft.wm.predstrm, com.microsoft.wm.startupprofile
Pragma: playlist-gen-id=197701569
Pragma: xClientGUID={3300AD50-2C39-46c0-AE0A-01DA84E85713}
Pragma: stream-switch-count=1
Pragma: stream-switch-entry=ffff:1:0
Accept-Language: en-us, *;q=0.1
HTTP/1.1 200 OK
Content-Type: application/x-mms-framed
Server: Cougar/9.01.01.3862
Date: Fri, 05 Dec 2008 15:23:03 GMT
Pragma: no-cache, client-id=3865030889, features="broadcast,playlist",
timeout=600000, AccelBW=3500000, AccelDuration=18048, Speed=1.000
Cache-Control: no-cache, max-age=86386, x-wms-stream-type="broadcast,
playlist", user-public, must-revalidate, x-wms-proxy-split
Last-Modified: Fri, 04 May 2007 11:31:13 GMT
Etag: "322"
Transfer-Encoding: chunked
X-StartupProfile:
Rate=10,12,15,20,30;MaxBytes=2579,1948,1948,1948,1948;Time=15552,0,0,0,0;StartTime=4428673500;LastTime=17980;MaxDiffTime=0;MaxDiffSndTime=0;ByteRate=5095,5095,5095,5095,5095;
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch,
com.microsoft.wm.predstrm, com.microsoft.wm.fastcache,
com.microsoft.wm.startupprofile
249
$ME.......E.playlist-gen-id=197701569, broadcast-id=5193798,
features="broadcast,playlist".8,language,31,0,,5,title,31,8,680
NEWS,6,author,31,26,Rogers Broadcasting Limted,9,copyright,31,27,Rogers
Broadcasting Limited,35,WMS_CONTENT_DESCRIPTION_DESCRIPTION,31,11,680 NEWS
AM,44,WMS_CONTENT_DESCRIPTION_SERVER_BRANDING_INFO,31,12,WMServer/9.1,51,WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_START_OFFSET,3,4,2433,47,WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_DURATION,3,1,0,58,WMS_CONTENT_DESCRIPTION_COPIED_METADATA_FROM_PLAYLIST_FILE,3,1,1,42,WMS_CONTENT_DESCRIPTION_PLAYLIST_ENTRY_URL,31,1,/
1525
....
==== end ====
Best Regards,
Ming
On Thu, Dec 4, 2008 at 5:13 PM, Juliusz Chroboczek <
[email protected]> wrote:
> > In function objectMustRevalidate(), should it include cache control flag
> > CACHE_MUST_REVALIDATE?
>
> I don't believe so.
>
> As I read the spec, CACHE_MUST_REVALIDATE is a server-side directive that
> prevents the client-side from relaxing the server-side cache-control
> directives.
>
> Let me explain. Suppose a server says:
>
> Expires: Sun, 21 Sep 2008 1:00:00 GMT
>
> Then normally, the proxy must revalidate after 1AM. However, a client may
> say
>
> Cache-Control: max-stale=3600
>
> to specify that it is okay if the (stale) instance is served until 2AM.
> Cache-Control: must-revalidate is a way for the server to say that when it
> says that this instance expires at 1AM, it really means it.
>
> Juliusz
>
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users
save.dump.gz
(application/x-gzip, 127.2 KB) - not displayed