From 0161b4b655e549d57fef122cabae5d4e380a4e95 Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Wed, 7 Oct 2009 12:16:35 +0200 Subject: Implement sane caching behaviour. Ignore-this: 8ed0815613cb44c0eee9d8ac47e1753b darcs-hash:e41ff965d8172b7979369cb0df98302f29a9a9c4 --- globals.lisp | 4 ++++ journal.lisp | 2 ++ main.lisp | 2 ++ mulk-journal.asd | 2 +- utils.lisp | 10 ++++++++++ 5 files changed, 19 insertions(+), 1 deletion(-) diff --git a/globals.lisp b/globals.lisp index a609e63..1637931 100644 --- a/globals.lisp +++ b/globals.lisp @@ -76,3 +76,7 @@ "Warnings that should be displayed to the user.") (defparameter *full-entry-view* t) + +(defparameter *site-root* nil) +(defparameter *if-modified-since* nil) + diff --git a/journal.lisp b/journal.lisp index cfac6fd..f1fd5b1 100755 --- a/journal.lisp +++ b/journal.lisp @@ -346,6 +346,7 @@ ;; ;; (http-add-header "Last-Modified" (http-timestamp (compute-journal-last-modified-date))) (http-add-header "Content-Language" "de") + (http-add-header "Cache-Control" "public") (http-send-headers "text/html; charset=UTF-8") (= *if-modified-since* (compute-journal-last-modified-date))) + (http-add-header "Status: 304 Not Modified") + (http-send-headers) + (ext:quit 0))) + #-clisp + nil) -- cgit v1.2.3