<div dir="ltr">Wim,<div><br></div><div style>thank you for the bug report.  The problem was a bug in Hunchentoot that caused it to set the Content-Length header of a static file response before the incoming If-modified-since header was dealt with.  This apparently caused Safari to try to read the response body, which did never complete.</div>

<div style><br></div><div style>I have pushed a corrective change to github (<a href="https://github.com/edicl/hunchentoot.git">https://github.com/edicl/hunchentoot.git</a>).  Can you give it a try and also check whether the problem with Weblocks is solved by the fix as well?</div>

<div style><br></div><div style>-Hans</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Mar 3, 2013 at 6:05 PM, Willem Rein Oudshoorn <span dir="ltr"><<a href="mailto:woudshoo@xs4all.nl" target="_blank">woudshoo@xs4all.nl</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I have some issues when I try to reload a page which is served by<br>
hunchentoot.<br>
<br>
Note that this only happens with Safari.  Firefox and Chrome seem<br>
to behave correctly.<br>
<br>
I first observed an issue with weblocks and afterwards I tried plain<br>
hunchentoot.  The plain hunchentoot exhibits different behaviour, but<br>
also a behaviour which seems wrong.<br>
<br>
1. Plain hunchentoot<br>
--------------------<br>
<br>
I did the following with both SBCL and CCL on MacOSX:<br>
<br>
 - start Common Lisp<br>
 - do:  (ql:quickload "hunchentoot")<br>
 - do:<br>
    (hunchentoot:start (make-instance 'hunchentoot:easy-acceptor :port 4242))<br>
   which is copied from the documantation.<br>
 - Point my browser to <a href="http://localhost:4242" target="_blank">http://localhost:4242</a><br>
 - Observation 1:  Everything looks fine<br>
 - do: Reload in browser<br>
 - Observation 2:  The 'made with lisp image' is not visible anymore.<br>
<br>
Now it seems an additional reload brings the image back.  In fact,<br>
reload in the browser toggles the visibility of the image.<br>
<br>
The developer console of safari seems to indicate that 1/2 the times the<br>
request image never arrives.<br>
<br>
<br>
2. Weblocks<br>
-----------<br>
Now this might be a problem with weblocks or hunchentoot, howver the<br>
following happens:<br>
<br>
 - A reload takes about 2.7 minutes (the original page is loaded<br>
   almost instantaneous.<br>
 - For all my static resources (e.g. javascript files etc),<br>
   the requests take about 25 seconds and return status 304<br>
   which is:   +http-not-modified+<br>
 - I have 11 static resources (it seems to be doing about 2 requests in<br>
   parallel??)<br>
<br>
<br>
<br>
Has anybody seen something similar?<br>
<br>
3. Versions<br>
-----------<br>
Hunchentoot: 1.2.11<br>
SBCL:  "1.1.3.8-3eed775"<br>
CCL: "Version 1.8-r15416M  (DarwinX8664)"<br>
Safari: Version 6.0.2 (8536.26.17)<br>
<br>
Kind regards,<br>
Wim Oudshoorn.<br>
<br>
<br>
_______________________________________________<br>
tbnl-devel site list<br>
<a href="mailto:tbnl-devel@common-lisp.net">tbnl-devel@common-lisp.net</a><br>
<a href="http://common-lisp.net/mailman/listinfo/tbnl-devel" target="_blank">http://common-lisp.net/mailman/listinfo/tbnl-devel</a><br>
</blockquote></div><br></div>