From 9a4fae7a56341a39bfd612ddbd8d618aaa42f49b Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 27 Dec 2018 09:06:33 +0000 Subject: [PATCH] 01_FHEMWEB.pm: Add no-cache to the standard response (Forum #94911) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@18064 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/01_FHEMWEB.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FHEM/01_FHEMWEB.pm b/FHEM/01_FHEMWEB.pm index 803ad1bef..d91f239f0 100644 --- a/FHEM/01_FHEMWEB.pm +++ b/FHEM/01_FHEMWEB.pm @@ -564,8 +564,9 @@ FW_finishRead($$$) } my $length = length($FW_RET); - my $expires = ($cacheable? - ("Expires: ".FmtDateTimeRFC1123($hash->{LASTACCESS}+900)."\r\n") : ""); + my $expires = ($cacheable ? + "Expires: ".FmtDateTimeRFC1123($hash->{LASTACCESS}+900)."\r\n" : + "Cache-Control: no-cache, no-store, must-revalidate\r\n"); Log3 $FW_wname, 4, "$FW_wname: $arg / RL:$length / $FW_RETTYPE / $compressed / $expires"; if( ! FW_addToWritebuffer($hash,