Hello!

On Saturday 09 May 2009 20:11:11 Tom Jackson wrote:
> You can use this as a temporary replacement:
> 
> proc ::ns_httptime { seconds } {
> 
> return [clock format $seconds -format "%a, %d %b %Y %H:%M:%S %Z" -gmt 1]
> 
> }

Tnx, but AOL internals set wrong header again
Last-Modified: Sat, 9 May 2009 18:07:40 GMT

I did find this error by testing AOL internal caching.

My custom cache function doesn't have the problem:

    set mtime [file mtime $fname]

... create gzipped version in cache if needed ...

    set none_header [ns_set iget [ns_conn headers] If-None-Match]
    set none_header [clock scan $none_header]
    set since_header [ns_set iget [ns_conn headers] If-Modified-Since]
    set since_header [clock scan $since_header]
    if {$none_header == $mtime || $since_header == $mtime} {
        ns_return 304 {} {}
        return
    }

... return original or gzipped file ...


Best regards, Alexey Pechnikov.
http://pechnikov.tel/


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to