smart-home

This commit is contained in:
ed
2020-05-11 22:04:02 +02:00
parent a994e034f7
commit dad92bde26
3 changed files with 49 additions and 11 deletions

View File

@@ -859,6 +859,7 @@ class HttpCli(object):
file_ts = max(ts_md, ts_html)
file_lastmod, do_send = self._chk_lastmod(file_ts)
self.out_headers["Last-Modified"] = file_lastmod
self.out_headers["Cache-Control"] = "no-cache"
status = 200 if do_send else 304
targs = {