Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jun 2017
    Posts
    27

    what is an ETag and how does it work?

    An ETag is an opaque identifier allocated by a web server to a specific version of a resource found at a URL. The ETag is a part of HTTP, the protocol for the world wide web and when the server reads the ETag from client request, the server can then tell whether to send the file (HTTP 200) or tell the client just to use their local copy (HTTP 304).

  2. #2
    Senior Member dennis123's Avatar
    Join Date
    Apr 2013
    Location
    Bangalore
    Posts
    1,849
    An ETag is an opaque identifier assigned by a web server to a specific version of a resource found at an URL. If the resource content at that URL ever changes, a new and different ETag is assigned.

    In typical usage, when an URL is retrieved the web server will return the resource along with its corresponding ETag value, which is placed in an HTTP ?ETag? field:

    ETag: "unique_id_of_resource_version"
    The client may then decide to cache the resource, along with its ETag. Later, if the client wants to retrieve the same URL again, it will send its previously saved copy of the ETag along with the request in a "If-None-Match" field.

  3. #3
    Senior Member
    Join Date
    Dec 2014
    Location
    Florida
    Posts
    142
    An ETag is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.

  4. #4
    Registered User
    Join Date
    Dec 2018
    Posts
    42
    An entity tag (ETag) is an HTTP header used for Web cache validation and conditional requests from browsers for resources. Etags use persistent identification elements (PIE) that have been tagged to the user's browser.

  5. #5
    Registered User
    Join Date
    Dec 2018
    Location
    51/1, Lalbagh Cross Road, Dhaka-1211
    Posts
    37
    ETag is short for Entity Tag is a part of HTTP. HTTP offers numerous mechanisms for web cache validation and ETag is one of them. It permits caches to be more efficient, and saves bandwidth. If the content has not altered, a web server doesn't need to send a full response. Again, if the content has altered, Etags are convenient to assist to prevent simultaneous updates of a resources from overwriting each other.

  6. #6
    Registered User
    Join Date
    Jan 2019
    Posts
    24
    Etag (entity tag) response header provides a mechanism to cache unchanged resources. It's value is an identifier which represents a specific version of the resource. Here's an example ETag header:
    Etag:”version1”
    Followings are the general high level steps where response header 'ETag' along with conditional request header 'If-None-Match' is used to cache the resource copy in the client browser:
    1. Server receives a normal HTTP request for a particular resource, say XYZ.
    2. The server side prepares the response. The server side logic wants the browser to cache XYZ locally. By default all browsers always cache the resources (specification) so no special header in the response is needed.
    3. Server includes the header 'Etag' with it's value in the response:
    ETag: "version1"

    4. Server sends the response with above header, content of XYZ in the body and with the status code 200. The browser renders the resource and at the same time caches the resource copy along with header information.
    5. Later the same browser makes another request for the same resource XYZ. with following conditional request header:
    If-None-Match: "version1"

    6. On receiving the request for XYZ along with 'If-None-Match' header, the server side logic checks whether XYZ needs a new copy of the resource by comparing the current value of the ETag identifier on the server side and the one which is received in the request header.

  7. #7

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.