RE: Forced caching of cgi-gifs

From: Dave J Woolley <DJW@dont-contact.us>
Date: Tue, 8 Feb 2000 14:50:59 -0000

> From: Alessio Sangalli [SMTP:manoweb@iname.com]
>
> How can I force the caching of cgi-generated gifs?
>
        You should generate them with the following headers:

        Cache-Control: max-age=31535999, public
        Expires: <1 second before the current date and time, but in the next
year>

        or with suitably smaller values respresenting how long you
        think they will remain valid. Be careful though that you don't
        pollute the cache with entries that will never be used again,
        and avoid form type URLs, as abuse of these in the past has led
        to them being treated as uncacheable. You must use GET, not
        POST.

        public allows them to be cached even if you have an authenticated
        (but not SSL) connection.

        Most CGI implementations will permit you to include fairly abitrary
        headers, not just Content-Type or Location.
Received on Tue Feb 08 2000 - 11:07:54 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:51:01 MST