tags:

views:

711

answers:

1

what method/algorithm does iis 7 use to generate etags. I'm looking for exact, not 'well they use checksum on the date'

This leaves lots of questions. What algorithm for checksum, which date, which format of the date (short, utc, 'mm-dd-yyyy ttad', 'MMDDDYYY', etc)

Thanks in advance. i have scoured the net and cannot find this answer.

A: 

ETag generated by IIS has two parts

Filetimestamp:ChangeNumber

according to

http://support.microsoft.com/kb/922703/

As you noticed, the algorithm is not publicly available. But why you are interested in this? Unless you create an IIS clone.

Lex Li
Well, we are having an issue with the same server(no cluster, farm, garden, etc) returning one of 2 etags. Very odd. So i'd like to know what file time stamp it's using for the 2 etags. It's always the same etags, but it serves them up at different times.
ttomsen
Can you show some examples? What was returned by IIS and what was expected by you? Thanks,
Lex Li