summaryrefslogtreecommitdiff
path: root/utils.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'utils.lisp')
-rw-r--r--utils.lisp11
1 files changed, 6 insertions, 5 deletions
diff --git a/utils.lisp b/utils.lisp
index 590d310..90cfb8b 100644
--- a/utils.lisp
+++ b/utils.lisp
@@ -328,10 +328,11 @@ ELEMENT-TYPE as the stream's."
(defun revalidate-cache-or-die ()
#+clisp
- (let ((time (cybertiggyr-time:parse-time *if-modified-since*)))
- (when (and (integerp time) (>= *if-modified-since* (compute-journal-last-modified-date)))
- (http-add-header "Status: 304 Not Modified")
- (http-send-headers)
- (ext:quit 0)))
+ (when *if-modified-since*
+ (let ((time (cybertiggyr-time:parse-time *if-modified-since*)))
+ (when (and (integerp time) (>= *if-modified-since* (compute-journal-last-modified-date)))
+ (http-add-header "Status: 304 Not Modified")
+ (http-send-headers)
+ (ext:quit 0))))
#-clisp
nil)