2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 07:16:03 +00:00

01_FHEMWEB.pm: Add no-cache to the standard response (Forum #94911)

git-svn-id: https://svn.fhem.de/fhem/trunk@18064 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-12-27 09:06:33 +00:00
parent a26c696549
commit 1477d73358

View File

@ -564,8 +564,9 @@ FW_finishRead($$$)
} }
my $length = length($FW_RET); my $length = length($FW_RET);
my $expires = ($cacheable? my $expires = ($cacheable ?
("Expires: ".FmtDateTimeRFC1123($hash->{LASTACCESS}+900)."\r\n") : ""); "Expires: ".FmtDateTimeRFC1123($hash->{LASTACCESS}+900)."\r\n" :
"Cache-Control: no-cache, no-store, must-revalidate\r\n");
Log3 $FW_wname, 4, Log3 $FW_wname, 4,
"$FW_wname: $arg / RL:$length / $FW_RETTYPE / $compressed / $expires"; "$FW_wname: $arg / RL:$length / $FW_RETTYPE / $compressed / $expires";
if( ! FW_addToWritebuffer($hash, if( ! FW_addToWritebuffer($hash,