koha-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-bugs] [Bug 1373] Please send no-cache headers


From: bugzilla-daemon
Subject: [Koha-bugs] [Bug 1373] Please send no-cache headers
Date: Sat, 6 Oct 2007 20:08:00 -0700 (PDT)

http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=1373





------- Comment #4 from address@hidden  2007-10-06 20:08 -------
Hi Devin,

Thanks for the additional information. I've played around a bit with the
headers and I've been able to successfully add the headers you've requested.
It's a pretty simple matter:

sub output_html_with_http_headers ($$$) {
    my($query, $cookie, $html) = @_;
    print $query->header(
        -type    => 'text/html',
        -charset => 'UTF-8',
        -cookie  => $cookie,
        -Pragma => 'no-cache',
        -'Cache-Control' => 'no-cache',
    ), $html;
}


However, I am concerned that these directives will mean that none of the
javascript, images, css in Koha will be cached, which would be a shame ...
perhaps you could expand a bit on whether that's the case. 

Also, my reading of the spec you pasted in is a bit different than yours I
guess, especially the part: "If there is neither a cache validator nor an
explicit expiration time associated with a response, we do not expect it to be
cached, but certain caches may violate this expectation". It sounds like the
assumption is to not cache.

It would be extremely helpful if you could give me details on the environment
in which you find this happening, I'd really love to see it in action. Are you
on windows? linux? OSX? Unix? What browser and version?

Thanks!




------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]