On Monday, Jan 20, 2003, at 18:17 Europe/London, Daisuke Maki wrote:
Well, the HTTP 1.1 spec says:Ah, that's right, it's HTTP/1.1. I forgot about that.
Note that HTTP/1.0 caches might not implement Cache-Control and
might only implement Pragma: no-cache (see section 14.32).
Which causes concern for me. Plus the docs for the Pragma: header state
that Pragma: no-cache is exactly equivalent to Cache-Control: no-cache.
> Sounds like it'll work for IE, but that's a minority view. What about the
> vast number of other browsers out there?
The problem for me is that while it's true this is the minority view, statistics show that 80-90% of my site's users are using IE5.5 or IE6. I need to at least be able to toggle this behavior even at the expense of others.
That's understandable.
One work-around would be this in httpd.conf:
PerlModule AxKit
<Perl>
sub AxKit::Apache::no_cache {
package AxKit::Apache;
my $self = shift;
$self->headers_out->set('Cache-Control', 'max-age=0');
if ($set) {
$AxKit::Cache->no_cache(1);
}
}
</Perl>
If there is no other plausible workaround that works well with others, can it be a switch? AxForceUseCacheControl or something... which then can control the behavior of AxKit::Apache so that it uses no-pragma by default, but if you so choose to you can override it?Flesh out a better API for it and I'll look into implementing something (or discard it because the above will probably work just fine ;-)
Matt.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
