开发者

Broken caching of images loaded from homemade webserver

开发者 https://www.devze.com 2023-01-27 00:53 出处:网络
A while ago I wrote a webserver which I\'m using on a site of mine. When I navigate to another page in Chrome while the images from this homemade webserver are still loading, they stay cached as only

A while ago I wrote a webserver which I'm using on a site of mine.

When I navigate to another page in Chrome while the images from this homemade webserver are still loading, they stay cached as only half-loaded.

Is this a k开发者_如何学JAVAnown bug in Chrome, or an issue with my implementation of the HTTP protocol?

My webserver uses E-Tags for caching.


First Rule of Programming: It's your fault

Start with your code, and investigate further and further outward until you have definitive evidence of where the problem lies.

You need to apply this rule here. What are the chances that Chrome, when communicating with Apache, is likely to exhibit this kind of bug deep into it's 6 (at least) major iteration?

I would put a traffic analyser onto your server and view the exchanges carefully. Next I would compare them with those from a well-established web server like Apache and note any differences.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号