Skip to content

Commit

Permalink
431 update expiry of cached commonjs entity if no change on filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
dhogan authored and gbrail committed May 1, 2018
1 parent 192ecac commit a715323
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ private boolean isResourceChanged(URLConnection urlConnection)
return ((HttpURLConnection)urlConnection).getResponseCode() ==
HttpURLConnection.HTTP_NOT_MODIFIED;
}
return lastModified == urlConnection.getLastModified();
return lastModified != urlConnection.getLastModified();
}

private long calculateExpiry(URLConnection urlConnection,
Expand Down

0 comments on commit a715323

Please sign in to comment.