Mercurial > p > roundup > code
comparison roundup/scripts/roundup_server.py @ 6529:c3dfc4977ec6
Cache /favicon.ico
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 07 Nov 2021 13:18:39 -0500 |
| parents | 6cf050b43eaf |
| children | 98a9df71e24c |
comparison
equal
deleted
inserted
replaced
| 6528:6cf050b43eaf | 6529:c3dfc4977ec6 |
|---|---|
| 320 favicon_fileobj = io.BytesIO(favico) | 320 favicon_fileobj = io.BytesIO(favico) |
| 321 | 321 |
| 322 self.send_response(200) | 322 self.send_response(200) |
| 323 self.send_header('Content-Type', 'image/x-icon') | 323 self.send_header('Content-Type', 'image/x-icon') |
| 324 self.send_header('Content-Length', len(favico)) | 324 self.send_header('Content-Length', len(favico)) |
| 325 self.send_header('Cache-Control', "public, max-age=86400") | |
| 325 self.end_headers() | 326 self.end_headers() |
| 326 | 327 |
| 327 # this bufsize is completely arbitrary, I picked 4K because | 328 # this bufsize is completely arbitrary, I picked 4K because |
| 328 # it sounded good. if someone knows of a better buffer size, | 329 # it sounded good. if someone knows of a better buffer size, |
| 329 # feel free to plug it in. | 330 # feel free to plug it in. |
