
Force caching of responses with no explicit expiry date, where the
This seems to be something that's been around for a while, but I
haven't been able to find anything conclusive saying that it's
supposed to work this way:
I'm using Apache 2.2 as a forward proxy, aiming to cache all responses.
I've set CacheDefaultExpire to 86400 (1 day), so any requests that
don't have explicit expiry dates should still be cached.
In the logs, I'm still seeing the message.
"not cached. Reason: Query string present but no explicit expiration time"
It seems that if there's a query string in the request, the default
expiry date isn't applied, so the response isn't cached.
Is there a way to force responses that have no explicit expiry date to
be cached, even where the request contains a query string?
alf
Related:
http://markmail.org/thread/sxxi27pqbce33hlu ("mod_cache:
CacheDefaultExpire is ignored?")
http://markmail.org/thread/yy4feryppagv4lem ("mod_disk_cache problem")
http://markmail.org/thread/6jdxhgn63m7sew3z ("mod_cache and query strings")
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: Force caching of responses with no explicit expiry
--0016e648f0aae54ade04808d3897
Content-Type: text/plain; charset=UTF-8
On Fri, Feb 26, 2010 at 6:39 AM, Alf Eaton <alf [at] hubmed.org> wrote:
> This seems to be something that's been around for a while, but I
> haven't been able to find anything conclusive saying that it's
> supposed to work this way:
>
> I'm using Apache 2.2 as a forward proxy, aiming to cache all responses.
>
> I've set CacheDefaultExpire to 86400 (1 day), so any requests that
> don't have explicit expiry dates should still be cached.
>
> In the logs, I'm still seeing the message.
> "not cached. Reason: Query string present but no explicit expiration time"
>
> It seems that if there's a query string in the request, the default
> expiry date isn't applied, so the response isn't cached.
>
> Is there a way to force responses that have no explicit expiry date to
> be cached, even where the request contains a query string?
>
> alf
>
> Related:
> http://markmail.org/thread/sxxi27pqbce33hlu ("mod_cache:
> CacheDefaultExpire is ignored?")
> http://markmail.org/thread/yy4feryppagv4lem ("mod_disk_cache problem")
> http://markmail.org/thread/6jdxhgn63m7sew3z ("mod_cache and query
> strings")
>
>
this might be helpful:
http://httpd.apache.org/docs/2.2/mod/mod_cache.html#cacheign orequerystring
--0016e648f0aae54ade04808d3897
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
On Fri, Feb 26, 2010 at 6:39 AM, Alf Eaton <span dir=3D"ltr"><<a href=3D=
"mailto:alf [at] hubmed.org">alf [at] hubmed.org</a>></span> wrote:<br><div class=
=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8=
ex;border-left:1px #ccc solid;padding-left:1ex;">
This seems to be something that's been around for a while, but I<br>
haven't been able to find anything conclusive saying that it's<br>
supposed to work this way:<br>
<br>
I'm using Apache 2.2 as a forward proxy, aiming to cache all responses.=
<br>
<br>
I've set CacheDefaultExpire to 86400 (1 day), so any requests that<br>
don't have explicit expiry dates should still be cached.<br>
<br>
In the logs, I'm still seeing the message.<br>
"not cached. Reason: Query string present but no explicit expiration t=
ime"<br>
<br>
It seems that if there's a query string in the request, the default<br>
expiry date isn't applied, so the response isn't cached.<br>
<br>
Is there a way to force responses that have no explicit expiry date to<br>
be cached, even where the request contains a query string?<br>
<br>
alf<br>
<br>
Related:<br>
<a href=3D"http://markmail.org/thread/sxxi27pqbce33hlu" target=3D"_blank">h=
ttp://markmail.org/thread/sxxi27pqbce33hlu</a> ("mod_cache:<br>
CacheDefaultExpire is ignored?")<br>
<a href=3D"http://markmail.org/thread/yy4feryppagv4lem" target=3D"_blank">h=
ttp://markmail.org/thread/yy4feryppagv4lem</a> ("mod_disk_cache proble=
m")<br>
<a href=3D"http://markmail.org/thread/6jdxhgn63m7sew3z" target=3D"_blank">h=
ttp://markmail.org/thread/6jdxhgn63m7sew3z</a> ("mod_cache and query s=
trings")<br>
<br></blockquote><div><br></div>this might be helpful:<div><a href=3D"http:=
//httpd.apache.org/docs/2.2/mod/mod_cache.html#cacheignorequ erystring">http=
://httpd.apache.org/docs/2.2/mod/mod_cache.html#cacheignoreq uerystring</a><=
/div>
</div>
--0016e648f0aae54ade04808d3897--
Re: Force caching of responses with no explicit expiry
On 27 February 2010 04:12, Jonathan Zuckerman <j.zuckerman [at] gmail.com> wrote:
> On Fri, Feb 26, 2010 at 6:39 AM, Alf Eaton <alf [at] hubmed.org> wrote:
>>
>> This seems to be something that's been around for a while, but I
>> haven't been able to find anything conclusive saying that it's
>> supposed to work this way:
>>
>> I'm using Apache 2.2 as a forward proxy, aiming to cache all responses.
>>
>> I've set CacheDefaultExpire to 86400 (1 day), so any requests that
>> don't have explicit expiry dates should still be cached.
>>
>> In the logs, I'm still seeing the message.
>> "not cached. Reason: Query string present but no explicit expiration time"
>>
>> It seems that if there's a query string in the request, the default
>> expiry date isn't applied, so the response isn't cached.
>>
>> Is there a way to force responses that have no explicit expiry date to
>> be cached, even where the request contains a query string?
>>
>> alf
>>
>> Related:
>> http://markmail.org/thread/sxxi27pqbce33hlu ("mod_cache:
>> CacheDefaultExpire is ignored?")
>> http://markmail.org/thread/yy4feryppagv4lem ("mod_disk_cache problem")
>> http://markmail.org/thread/6jdxhgn63m7sew3z ("mod_cache and query
>> strings")
>>
>
> this might be helpful:
> http://httpd.apache.org/docs/2.2/mod/mod_cache.html#cacheign orequerystring
Thanks, I did try CacheIgnoreQueryString, but it treats all responses
the same regardless of their query string (i.e. requests with
different query strings all get the same cached response). I need to
be able to cache responses with different query strings distinctly -
as if they had query strings and an expiry header.
alf
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: Force caching of responses with no explicit expiry
On Sun, Feb 28, 2010 at 7:33 AM, Alf Eaton <eaton.alf [at] googlemail.com> wrote:
> On 27 February 2010 04:12, Jonathan Zuckerman <j.zuckerman [at] gmail.com> wrote:
>> On Fri, Feb 26, 2010 at 6:39 AM, Alf Eaton <alf [at] hubmed.org> wrote:
>>>
>>> This seems to be something that's been around for a while, but I
>>> haven't been able to find anything conclusive saying that it's
>>> supposed to work this way:
>>>
>>> I'm using Apache 2.2 as a forward proxy, aiming to cache all responses.
>>>
>>> I've set CacheDefaultExpire to 86400 (1 day), so any requests that
>>> don't have explicit expiry dates should still be cached.
>>>
>>> In the logs, I'm still seeing the message.
>>> "not cached. Reason: Query string present but no explicit expiration time"
>>>
>>> It seems that if there's a query string in the request, the default
>>> expiry date isn't applied, so the response isn't cached.
>>>
>>> Is there a way to force responses that have no explicit expiry date to
>>> be cached, even where the request contains a query string?
>>>
>>> alf
>>>
>>> Related:
>>> http://markmail.org/thread/sxxi27pqbce33hlu ("mod_cache:
>>> CacheDefaultExpire is ignored?")
>>> http://markmail.org/thread/yy4feryppagv4lem ("mod_disk_cache problem")
>>> http://markmail.org/thread/6jdxhgn63m7sew3z ("mod_cache and query
>>> strings")
>>>
>>
>> this might be helpful:
>> http://httpd.apache.org/docs/2.2/mod/mod_cache.html#cacheign orequerystring
>
> Thanks, I did try CacheIgnoreQueryString, but it treats all responses
> the same regardless of their query string (i.e. requests with
> different query strings all get the same cached response). I need to
> be able to cache responses with different query strings distinctly -
> as if they had query strings and an expiry header.
Can you set Cache-Control s-maxage?
--
Eric Covener
covener [at] gmail.com
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Re: Force caching of responses with no explicit expiry
On 28 February 2010 12:35, Eric Covener <covener [at] gmail.com> wrote:
> On Sun, Feb 28, 2010 at 7:33 AM, Alf Eaton <eaton.alf [at] googlemail.com> wrote:
>> On 27 February 2010 04:12, Jonathan Zuckerman <j.zuckerman [at] gmail.com> wrote:
>>> On Fri, Feb 26, 2010 at 6:39 AM, Alf Eaton <alf [at] hubmed.org> wrote:
>>>>
>>>> This seems to be something that's been around for a while, but I
>>>> haven't been able to find anything conclusive saying that it's
>>>> supposed to work this way:
>>>>
>>>> I'm using Apache 2.2 as a forward proxy, aiming to cache all responses.
>>>>
>>>> I've set CacheDefaultExpire to 86400 (1 day), so any requests that
>>>> don't have explicit expiry dates should still be cached.
>>>>
>>>> In the logs, I'm still seeing the message.
>>>> "not cached. Reason: Query string present but no explicit expiration time"
>>>>
>>>> It seems that if there's a query string in the request, the default
>>>> expiry date isn't applied, so the response isn't cached.
>>>>
>>>> Is there a way to force responses that have no explicit expiry date to
>>>> be cached, even where the request contains a query string?
>>>>
>>>> alf
>>>>
>>>> Related:
>>>> http://markmail.org/thread/sxxi27pqbce33hlu ("mod_cache:
>>>> CacheDefaultExpire is ignored?")
>>>> http://markmail.org/thread/yy4feryppagv4lem ("mod_disk_cache problem")
>>>> http://markmail.org/thread/6jdxhgn63m7sew3z ("mod_cache and query
>>>> strings")
>>>>
>>>
>>> this might be helpful:
>>> http://httpd.apache.org/docs/2.2/mod/mod_cache.html#cacheign orequerystring
>>
>> Thanks, I did try CacheIgnoreQueryString, but it treats all responses
>> the same regardless of their query string (i.e. requests with
>> different query strings all get the same cached response). I need to
>> be able to cache responses with different query strings distinctly -
>> as if they had query strings and an expiry header.
>
> Can you set Cache-Control s-maxage?
I have no control over the headers set in the responses,
unfortunately, as they're all coming from remote servers (it's a
forward proxy). This is why I was hoping CacheDefaultExpire would
apply in cases where no cache control dates were set by the server,
but it seems not to apply when there's a query string in the proxied
URL.
alf
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org