From: Dan Scott Date: Fri, 14 Apr 2017 03:59:08 +0000 (-0400) Subject: Let My Account pages be cached for offline use X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=08a3808fa72b9865b5c6d6b0c4dc3a7748a3a380;p=working%2FEvergreen.git Let My Account pages be cached for offline use If people are offline, they just might want to be able to access their account pages anyway. Let's not hard-code the strictest of settings into the handler. Signed-off-by: Dan Scott --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm index 6aa1f5811d..6548edcd9e 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader.pm @@ -184,8 +184,7 @@ sub load { return $self->redirect_auth unless $self->editor->requestor; # Don't cache anything requiring auth for security reasons - $self->apache->headers_out->add("cache-control" => "no-store, no-cache, must-revalidate"); - $self->apache->headers_out->add("expires" => "-1"); + $self->apache->headers_out->add("cache-control" => "no-cache, must-revalidate"); return $self->load_email_record if $path =~ m|opac/record/email|;