Skip to content

Commit

Permalink
Merge pull request marcelduran#66 from NanoCaiordo/master
Browse files Browse the repository at this point in the history
isETagGood IIS7+ compatible
  • Loading branch information
marcelduran committed Oct 8, 2013
2 parents 095337e + 4f64241 commit 792b2eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ YSLOW.util = {
* @return {Boolean} TRUE if ETag is good, FALSE otherwise
*/
isETagGood: function (etag) {
var reIIS = /^[0-9a-f]+:[0-9a-f]+$/,
var reIIS = /^[0-9a-f]+:([1-9a-f]|[0-9a-f]{2,})$/,
reApache = /^[0-9a-f]+\-[0-9a-f]+\-[0-9a-f]+$/;

if (!etag) {
Expand Down

0 comments on commit 792b2eb

Please sign in to comment.