mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +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:
parent
a26c696549
commit
1477d73358
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user