Re: [squid-users] Expires Header

2010-01-04 Thread Dusten Splan
Thanks for the response Chris but I don't think that is was I'm
looking for.  What I would like to do is overwrite the expires header
to something far in the future.  I am also running squid 3.0.

Thanks
  Dusten

On Thu, Dec 31, 2009 at 15:30, Chris Robertson crobert...@gci.net wrote:
 Dusten Splan wrote:

 Does anyone know how to change the expires header in the http response
 that squid sends.  I have an object that has one in the past and when
 being forwarded to the CDN because it's in the past it's only keeping
 the content for 1 day.  I would like to do this in squid and not
 change the origin.


 http://www.squid-cache.org/Doc/config/header_access/
 http://www.squid-cache.org/Doc/config/header_replace/

 Thanks
 Dusten


 Chris




Re: [squid-users] Expires Header

2010-01-04 Thread Chris Robertson

Dusten Splan wrote:

Thanks for the response Chris but I don't think that is was I'm
looking for.  What I would like to do is overwrite the expires header
to something far in the future.  I am also running squid 3.0.

Thanks
  Dusten


Ah.  For 3.0 you will want to use reply_header_access 
(http://www.squid-cache.org/Doc/config/reply_header_access/) and 
header_replace.


Something like...

acl myPeer peername acellerated.host.mine
reply_header_access deny Expires myPeer
header_replace Expires Sat, 1 Jan 2011 00:00:00 GMT

...should replace the expires header for all responses from your 
accelerated host.  At least I think you can use a peername ACL with 
reply_header_access.


Chris





[squid-users] Expires Header

2009-12-31 Thread Dusten Splan
Does anyone know how to change the expires header in the http response
that squid sends.  I have an object that has one in the past and when
being forwarded to the CDN because it's in the past it's only keeping
the content for 1 day.  I would like to do this in squid and not
change the origin.

Thanks
Dusten


Re: [squid-users] Expires Header

2009-12-31 Thread Chris Robertson

Dusten Splan wrote:

Does anyone know how to change the expires header in the http response
that squid sends.  I have an object that has one in the past and when
being forwarded to the CDN because it's in the past it's only keeping
the content for 1 day.  I would like to do this in squid and not
change the origin.
  


http://www.squid-cache.org/Doc/config/header_access/
http://www.squid-cache.org/Doc/config/header_replace/


Thanks
Dusten
  


Chris



Re: [squid-users] expires header

2008-12-23 Thread Ken Peng



Hi,


I have two imageservers behind a squid.

My issue is that my imageservers are not sending any Expires headers 

but

I would like to attaché one from the squid.

So by the time the image reaches the browser I have an Expires header 

in

it.



if there is neither Expires nor max-age headers, Squid won't cache them, 
is it?
you may use apache's mod_expire to add that value, if you can control 
the realservers.


RE: [squid-users] expires header

2008-12-23 Thread Alin Bugeag

The squid is adding the max-age header but not the expires. So it cache them.

I was looking at the methods that are available and I think I will just modify 
the code and add a hardcoded expires header ... and then compile the whole 
thing ...


 Alin Bugeag

 Tel +1 905 761 5301 ext 231
 Home   +1 416 623 9253

-Original Message-
From: Ken Peng [mailto:kenp...@rambler.ru] 
Sent: Tuesday, December 23, 2008 9:43 AM
To: Alin Bugeag
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] expires header


 Hi,


 I have two imageservers behind a squid.

 My issue is that my imageservers are not sending any Expires headers 
but
 I would like to attaché one from the squid.

 So by the time the image reaches the browser I have an Expires header 
in
 it.


if there is neither Expires nor max-age headers, Squid won't cache them, 
is it?
you may use apache's mod_expire to add that value, if you can control 
the realservers.


RE: [squid-users] expires header

2008-12-23 Thread Ken Peng






The squid is adding the max-age header but not the expires. So it 

cache

them.



are you sure? I remember Squid adds an age header, not max-age header.
but maybe I'm wrong.


RE: [squid-users] expires header

2008-12-23 Thread Alin Bugeag
Yes, you are right it's the age header ... :)
But I did some tests and it's cache them ...

 Alin Bugeag

 Tel +1 905 761 5301 ext 231
 Home   +1 416 623 9253

-Original Message-
From: Ken Peng [mailto:kenp...@rambler.ru] 
Sent: Tuesday, December 23, 2008 9:59 AM
To: Alin Bugeag
Cc: squid-users@squid-cache.org
Subject: RE: [squid-users] expires header





 The squid is adding the max-age header but not the expires. So it 
cache
 them.


are you sure? I remember Squid adds an age header, not max-age header.
but maybe I'm wrong.


RE: [squid-users] expires header

2008-12-23 Thread Ken Peng





Yes, you are right it's the age header ... :)
But I did some tests and it's cache them ...



that's b/c images have a Last-Modified-Since header, squid calculate it 
based on that.
you can't force squid to insert a max-age or expires headers in the 
response.


[squid-users] expires header

2008-12-22 Thread Alin Bugeag
Hi,
 

I have two imageservers behind a squid. 

My issue is that my imageservers are not sending any Expires headers but I 
would like to attaché one from the squid.

So by the time the image reaches the browser I have an Expires header in it.

My imageserver is a custom made app that know one knows what's in it so I do 
not have time to dig it's code to add an expire date.

Is there any way to add that header from squid?

Thanks,
Alin Bugeag