Thanks for the tip. I didn't know you could do that. Refactoring now
I'm hoping this will fix a big i've found in using my code with safari. Image/CSS etc are not understood in safri, unless you go directly to them in the browser. I can only conclude that Safari sends some other requests that aren't for files bceause:
This fails (unless you point your browser directly to the image, and dont <img src /> to it):
But this works (which I though would have the same effect):
The second one still pushes everything I *thought* was in the request through the servlet, but clearly I was wrong because Safari gives a broken image if you link to it via <img>, yet it works if you copy the <img src=??? > into the address bar. Confusing.
I'll lt you know if your method solves that

I'll add some ETag and Last-Modified checks too which would speed things up further.