Changeset 635

Show
Ignore:
Timestamp:
2007-10-06 19:59:48 (1 year ago)
Author:
MaierMan
Message:

#319: inode/server-specific value removing from etags. (Apache-compatible/IIS)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/chrome/content/dta/manager.js

    r627 r635  
    621621                        if (header == 'etag') { 
    622622                                // strip off the "inode"-part apache and others produce, as mirrors/caches usually provide different/wrong numbers here :p 
    623                                 this[header] = aValue.replace(/^[a-f\d]+-([a-f\d]+)-([a-f\d]+)$/, '$1-$2').replace(/^([a-f\d]+):[a-f\d]{1,6}$/, '$1'); 
     623                                this[header] = aValue 
     624                                        .replace(/^(?:W\/)?"(.+)"$/, '$1') 
     625                                        .replace(/^[a-f\d]+-([a-f\d]+)-([a-f\d]+)$/, '$1-$2') 
     626                                        .replace(/^([a-f\d]+):[a-f\d]{1,6}$/, '$1'); 
    624627                        } 
    625628                        else if (header in this.cmpKeys) {