View Single Post
  #3  
Old 03-16-2012, 12:02 PM
romfladef romfladef is offline
New Member
 
Join Date: Mar 2012
Posts: 2
Quote:
Originally Posted by webizen View Post
Here is a general answer:

http://en.wikipedia.org/wiki/HTTP_ETag

Common methods of ETag generation include using a collision-resistant hash function of the resource's content, a hash of the last modification timestamp, or even just a revision number.
Usually, ETag are provided by Apache with: INode MTime Size, with CRC32 as cryptographic algorithm... but I noticed that LiteSpeed has another way to generate them (apart from the INode removal by the control panel I can't access in my hosting). I wasn't able to decipher it. I mean, -0 seems to be an incremental number, while I can't understand what the first and the second field represent. There are several chipers to encode ETag, from MD5 to CRC32. I'd like to use the same default algorithm to generate ETag via PHP for dynamic contents, because I can't modify them via FileETag on .htaccess that's unsupported by LiteSpeed for image, etc.! I tried looking at the web servers' sources, but it didn't help!
Reply With Quote