edicl / hunchentoot

Web server written in Common Lisp
https://edicl.github.io/hunchentoot/
702 stars 125 forks source link

Hunchentot intermittently returns HTTP 304 / HTTP 200 on HTTP HEAD #210

Closed phoe closed 1 year ago

phoe commented 2 years ago

With the hunchentoot easy acceptor, when testing a page with https://livejs.com/ enabled on Firefox, it seems that hunchentoot replies either with 304 Not Modified or with 200 OK. This tends to break live.js live reloading when HTTP 200 is returned in long bursts.

Zrzut ekranu z 2022-10-18 10-20-11

It seems that this behavior follows some sort of linear backoff since the HTTP 200 streaks become longer and longer over time (see the below screenshot). Is this configurable inside Hunchentoot? And, if yes, where?

Zrzut ekranu z 2022-10-18 10-26-29

phoe commented 1 year ago

PEBKAC, this was a Firefox caching issue rather than Hunchentoot's.