Skip to content
Browse files

injectLiveStyleScriptIncludeIntoHtml: Don't remove '-processimage'-su…

…ffixed ETags from the If-None-Match header.
  • Loading branch information...
1 parent 8564381 commit 18292db5b0e36344ff49b60ac987a42baa574526 @papandreou papandreou committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/middleware/injectLiveStyleScriptIncludeIntoHtml.js
View
2 lib/middleware/injectLiveStyleScriptIncludeIntoHtml.js
@@ -15,7 +15,7 @@ module.exports = function (config) {
var ifNoneMatch = req.headers['if-none-match'];
if (ifNoneMatch) {
var validIfNoneMatchTokens = ifNoneMatch.split(" ").filter(function (etag) {
- return /-livestyle\"$/.test(etag);
+ return /-(?:livestyle|processimage)\"$/.test(etag);
});
if (validIfNoneMatchTokens.length > 0) {
req.headers['if-none-match'] = validIfNoneMatchTokens.join(" ");

0 comments on commit 18292db

Please sign in to comment.
Something went wrong with that request. Please try again.