View Single Post
  #104 (permalink)  
Old 08-31-2007, 04:06 AM
velhari velhari is offline
D-Web Programmer
 
Join Date: Mar 2007
Location: Chennai
Posts: 67
velhari is on a distinguished road
Send a message via AIM to velhari
Thumbs up Re: Website Performance Tips & Tricks

Configure ETag:-
ETag(Entity Tag) is the one which is used for to saving the bandwidth and computation cycles with the help of HTTP Caching. It Improve the performance of dynamically generated pages.
What is ETag?
The HTTP Protocol specification says ETag as the "Entity value for the requested variant" (Refer:- HTTP/1.1: Header Field Definitions - Section 14.19.). Another way of specifying ETag is the token that can be associated with web resource(Normally, a Web Page). It represents the HTTP Response header returned by an HTTP1.1/Compliant web server used to uniquely identify the version of a page.
How to Improve performance with the help of ETag:-
ETags are used in conjunction with "If-None-Match" header on GET Request by the savvy server developers to take advantage of the clients browser. Because, the server is the one generating the ETag in first place, and then later it used for the purpose to determine whether the page has changed or not. If it not means, it responded with Not Modified response header(Code:- 304). However, the client request the server to validate the ETag for to acheive this.So, by this way we can save the bandwidth and computation cycle
Here the following scenario, explain what is the process is going on while a page uses ETag:
  1. First the Client send a Request for the Page (X)
  2. server sends the page (X) back to client along with the ETag
  3. Client send a request for the same page(X) again with ETag got back from server
  4. Server validates the ETag and determines the page hasn't changed since last time the client requested it. If so, server sends the 304 Response with empty body.
__________________
Regards,
VELHARI
I am not totally useless. I can be used for a bad example
Reply With Quote