diff options
Diffstat (limited to 'tekuti/cache.scm')
-rw-r--r-- | tekuti/cache.scm | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tekuti/cache.scm b/tekuti/cache.scm index d487ee4..f7ef6a6 100644 --- a/tekuti/cache.scm +++ b/tekuti/cache.scm @@ -1,16 +1,16 @@ ;; Tekuti -;; Copyright (C) 2010 Andy Wingo <wingo at pobox dot com> +;; Copyright (C) 2010, 2012 Andy Wingo <wingo at pobox dot com> -;; This program is free software; you can redistribute it and/or -;; modify it under the terms of the GNU General Public License as -;; published by the Free Software Foundation; either version 3 of -;; the License, or (at your option) any later version. -;; -;; This program is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. -;; +;; This program is free software; you can redistribute it and/or +;; modify it under the terms of the GNU General Public License as +;; published by the Free Software Foundation; either version 3 of +;; the License, or (at your option) any later version. +;; +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. +;; ;; You should have received a copy of the GNU General Public License ;; along with this program; if not, contact: ;; @@ -34,7 +34,7 @@ #:export (make-empty-cache cached-response-and-body update-cache)) - + (define (cacheable-request? request) (and (memq (request-method request) '(GET HEAD)) (not (request-authorization request)) |