Headers to avoid pages being cached are now done
authorArt Cancro <ajc@citadel.org>
Mon, 27 Aug 2007 21:08:34 +0000 (21:08 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 27 Aug 2007 21:08:34 +0000 (21:08 +0000)
in BOTH the standard way and the broken Microsoft way.
See http://support.microsoft.com/kb/234067 for more info.

webcit/autocompletion.c
webcit/webcit.c

index 0b9373ea2a8a5fea8b940fd831c9a7fb8285cf32..8c516f767000aac459b23116afd1722a8924960b 100644 (file)
@@ -22,7 +22,9 @@ void recp_autocomplete(char *partial) {
                "Server: %s\r\n"
                "Connection: close\r\n"
                "Pragma: no-cache\r\n"
-               "Cache-Control: no-store\r\n",
+               "Cache-Control: no-store\r\n"
+               "Expires: -1\r\n"
+               ,
                SERVER);
        begin_burst();
 
index 758d5b5aad61301b79115b393e14eb0c7e2a190d..f81a5d4e91373d4cc9b14a053cc8251324a1fc18 100644 (file)
@@ -448,6 +448,7 @@ void output_headers(        int do_httpheaders,     /**< 1 = output HTTP headers
        else {
                wprintf("Pragma: no-cache\r\n"
                        "Cache-Control: no-store\r\n"
+                       "Expires: -1\r\n"
                );
        }
 
@@ -962,7 +963,9 @@ void begin_ajax_response(void) {
                 "Server: %s\r\n"
                 "Connection: close\r\n"
                 "Pragma: no-cache\r\n"
-                "Cache-Control: no-cache\r\n",
+                "Cache-Control: no-cache\r\n"
+               "Expires: -1\r\n"
+               ,
                 SERVER);
         begin_burst();
 }