Skip to content
Permalink
Browse files
Revert "use etag instead of last-modified. Last-modified dates for AI…
…R SDKs becaome unstable. Sometimes it would give you different dates for the same file"

This reverts commit 301f030.
  • Loading branch information
aharui committed Nov 21, 2014
1 parent 301f030 commit 747927a54a980f6c8b1fecbc8a6db847af4d5d04
Showing 1 changed file with 2 additions and 6 deletions.
@@ -206,16 +206,12 @@ limitations under the License.
var headers:Array = event.responseHeaders;
for each (var header:URLRequestHeader in headers)
{
if (header.name == "Etag" || header.name == "ETag")
if (header.name == "Last-Modified")
{
lastModified = header.value;
if (lastModified.indexOf('"') == 0)
lastModified = lastModified.substr(1);
if (lastModified.indexOf('"') == lastModified.length - 1)
lastModified = lastModified.substr(0, lastModified.length - 1);
foundLastModified = true;
}
else if ((header.name == "Last-Modified") && lastModified == null)
else if ((header.name == "Etag" || header.name == "ETag") && lastModified == null)
{
lastModified = header.value;
foundLastModified = true;

0 comments on commit 747927a

Please sign in to comment.