NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: how to cache podcasts with '?' in URL using squid?



Hi,

I do not want to cache the XML, I want to cache the movies.

The URLs in the XML look like

http://podfiles.zdf.de/podcast/zdf_podcasts/100621_hjo_p.mp4?2010-06-21+21-39

The part after the '?' is useless as far as I can tell. 

dave@hilly>squidclient 
"http://podfiles.zdf.de/podcast/zdf_podcasts/100621_hjo_p.mp4?2010-06-21+21-39";
HTTP/1.0 200 OK
Age: 147
Accept-Ranges: bytes
Date: Tue, 22 Jun 2010 18:49:21 GMT
Content-Length: 99123080
Content-Type: video/mp4
Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13
Last-Modified: Mon, 21 Jun 2010 21:37:26 GMT
ETag: "63126287-5e87f88-1c5d9180"
X-Cache: MISS from hilly
Via: 1.0 hilly (squid/3.1.3)
Proxy-Connection: close

Any idea what I have to do for that in my squid.conf?

Thanks!

David

Am 23.06.2010 um 02:51 schrieb Matthias Scheler:

> On Fri, Jun 18, 2010 at 08:02:19PM -0700, David Wetzel wrote:
>> I want to cache the video files linked in
>> 
>> http://content.zdf.de/podcast/zdf_hjo/hjo.xml
>> 
>> for 24 hours on squid.
> 
> Thet content is not cacheable. Here are the HTTP headers:
> 
>> HEAD -Sse http://content.zdf.de/podcast/zdf_hjo/hjo.xml
> HEAD http://content.zdf.de/podcast/zdf_hjo/hjo.xml --> 200 OK
> Connection: close
> Date: Wed, 23 Jun 2010 09:47:53 GMT
> Server: Apache-Coyote/1.1
> Content-Language: en-US
> Content-Length: 6163
> Content-Type: text/xml;charset=UTF-8
> Client-Date: Wed, 23 Jun 2010 09:47:53 GMT
> Client-Peer: 8.12.199.126:80
> Client-Response-Num: 1
> X-Cache: HIT from www.zdf.de
> 
> 1.) There is no "Last-Modified" header or "ETag" header that Squid could
>    use to revalidate the content.
> 2.) There is also no "Cache-Control" or "Expires" headers which would
>    tell Squid how long it can cache the content.
> 
> Squid will therefore not cache this document.



Home | Main Index | Thread Index | Old Index