Skip to content

Commit 7845866

Browse files
committed
Add "no-transform" to the no_cache headers
I ran into an issue running meteor which user sockjs. My site didn't work when running on Chrome iOS with Google's [Data Saver](https://developer.chrome.com/multidevice/data-compression) feature turned on. I [filed a bug](https://code.google.com/p/chromium/issues/detail?id=553828#) but the change above *seems* to work around the issue for now until they can fix it on their side.
1 parent cfee1f8 commit 7845866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webjs.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ exports.GenericApp = class GenericApp
175175
return content
176176

177177
h_no_cache: (req, res, content) ->
178-
res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, max-age=0')
178+
res.setHeader('Cache-Control', 'no-store, no-cache, no-transform, must-revalidate, max-age=0')
179179
return content
180180

181181
expect_form: (req, res, _data, next_filter) ->

0 commit comments

Comments
 (0)