Re: [squid-users] ignoring no-cache-requests?
Thanks, that did it! Regards and Happy New Year -stefan- On Wed, 2006-12-27 at 19:31 +0100, Henrik Nordstrom wrote: mån 2006-12-25 klockan 13:51 +0100 skrev Stefan Palme: Is there a way to force squid to ignore all Pragma: no-cache and similar directives, so that squid *always* returns cached content, when it is available? refresh_pattern ... ignore-reload Regards Henrik -- --- Dipl. Inf. (FH) Stefan Palme email: [EMAIL PROTECTED] www: http://hbci4java.kapott.org icq: 36376278 phon: +49 341 3910484 fax: +49 1212 517956219 mobil: +49 178 3227887 key fingerprint: 1BA7 D217 36A1 534C A5AD F18A E2D1 488A E904 F9EC ---
Re: [squid-users] ignoring no-cache-requests?
mån 2006-12-25 klockan 13:51 +0100 skrev Stefan Palme: Is there a way to force squid to ignore all Pragma: no-cache and similar directives, so that squid *always* returns cached content, when it is available? refresh_pattern ... ignore-reload Regards Henrik signature.asc Description: Detta är en digitalt signerad meddelandedel
Re: [squid-users] ignoring no-cache-requests?
Thanks for the answer. Is there a way to force squid to ignore all Pragma: no-cache and similar directives, so that squid *always* returns cached content, when it is available? ... I only want to make it inpossible to force fresh content by pressing Shift-Reload (or similar) in the browser... This is a double question. The first part, ignoring 'Pragma: no-cache' requires changes to the source probably. There has been a thread on this very recently, see the archives. Why a double question? When I use Shift-Reload with by browser, it sends a HTTP request with Pragma: no-cache header... However, ignoring Pragma:no-cache is impossible at the moment (without patching squid), right? So a request with that header set *always* makes squid ask the origin server? (Ehm, I forgot to say, that I am running squid as a transparent reverse proxy for an always overloaded application server :-). Of course, when the cached content is stale, squid should forward the request to the origin. What if the cached content, would be always stale ? In this case the origin server had to be asked always. This is ok, I only don't want cached content to be fetched more often then really necessary from the origin server. I know, this maybe violates HTTP standard, but for this special application this is ok :-) This though, can be done. See the options 'reload-into-ims' and or 'ignore-reload' of the 'refresh_pattern' directive. I see, thanks! Regards -stefan- -- --- Dipl. Inf. (FH) Stefan Palme email: [EMAIL PROTECTED] www: http://hbci4java.kapott.org icq: 36376278 phon: +49 341 3910484 fax: +49 1212 517956219 mobil: +49 178 3227887 key fingerprint: 1BA7 D217 36A1 534C A5AD F18A E2D1 488A E904 F9EC ---
[squid-users] ignoring no-cache-requests?
Hi all, Is there a way to force squid to ignore all Pragma: no-cache and similar directives, so that squid *always* returns cached content, when it is available? Of course, when the cached content is stale, squid should forward the request to the origin. I only want to make it inpossible to force fresh content by pressing Shift-Reload (or similar) in the browser... I know, this maybe violates HTTP standard, but for this special application this is ok :-) Best regards and Merry Christmas -stefan- -- --- Dipl. Inf. (FH) Stefan Palme email: [EMAIL PROTECTED] www: http://hbci4java.kapott.org icq: 36376278 phon: +49 341 3910484 fax: +49 1212 517956219 mobil: +49 178 3227887 key fingerprint: 1BA7 D217 36A1 534C A5AD F18A E2D1 488A E904 F9EC ---
Re: [squid-users] ignoring no-cache-requests?
Hi all, Is there a way to force squid to ignore all Pragma: no-cache and similar directives, so that squid *always* returns cached content, when it is available? This is a double question. The first part, ignoring 'Pragma: no-cache' requires changes to the source probably. There has been a thread on this very recently, see the archives. Of course, when the cached content is stale, squid should forward the request to the origin. What if the cached content, would be always stale ? I only want to make it inpossible to force fresh content by pressing Shift-Reload (or similar) in the browser... I know, this maybe violates HTTP standard, but for this special application this is ok :-) This though, can be done. See the options 'reload-into-ims' and or 'ignore-reload' of the 'refresh_pattern' directive. Options are described in squid.conf.default. M.