34
votes
6answers
4k views

When webservers send a page, why don't they send all required CSS, JS, and images without being asked?

When a web page contains a single CSS file and an image, why do browsers and servers waste time with this traditional time-consuming route: browser sends an initial GET request for the webpage and ...
3
votes
2answers
780 views

What are reasons of latency for a HTTP request to load HTML?

I would like to know what are reasons of latency for a HTTP request to load HTML part of a webpage. I think about: loading webpage with proxy not having a good web server (apache vs nginx) having a ...
2
votes
1answer
77 views

Need a study about average latency due to HTTP request and server processing time when downloading images that are a part of DOM

I'm writing a thesis about css sprites and need to know the of the average HTTP request overhead when establishing a connection to download an image file that is a part of DOM. We conducted a study ...
2
votes
2answers
762 views

What is the default behavior of Cache-Control

If no private nor public were defined in the cache-control, e.g. Cache-Control: max-age=31461276 What is the expected behavior?
0
votes
4answers
1k views

Best way to have both HTTP and HTTPS communication in a web application?

I am considering using both HTTP and HTTPS in a web application and I am looking for tips to accomplish this best. The application will run under Tomcat. I have also seen the following about HTTPS ...