jenkins-bot has submitted this change and it was merged.
Change subject: Bug 56282: Enable gzip compression support, the sequel
......................................................................
Bug 56282: Enable gzip compression support, the sequel
Varnish will
* always send 'Accept-Encoding: gzip' to the backend
* ignore a returned 'Vary: Accept-Encoding' header
* transparently decompressed stored gzipped content
Verified working using the varnish setup in betalabs.
The Parsoid version in betalabs is also old enough to still send
the cookie header unconditionally in requests back to varnish, and
thus exhibits the same cache misses we saw in the last deployment.
I manually tested with varying accept headers, but without the
cookie header.
Change-Id: If94b65564ab7264969636559f9c79efc114ccfc1
---
M js/api/ParserService.js
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Subramanya Sastry: Looks good to me, approved
jenkins-bot: Verified
diff --git a/js/api/ParserService.js b/js/api/ParserService.js
index 129ac98..2e7d5a6 100644
--- a/js/api/ParserService.js
+++ b/js/api/ParserService.js
@@ -372,6 +372,9 @@
// Increase the form field size limit from the 2M default.
app.use(express.bodyParser({maxFieldsSize: 15 * 1024 * 1024}));
+// Support gzip / deflate transfer-encoding
+app.use(express.compress());
+
app.get('/', function(req, res){
res.write('<html><body>\n');
res.write('<h3>Welcome to the <a
href="https://www.mediawiki.org/wiki/Parsoid">Parsoid</a> web service.</h3>\n');
--
To view, visit https://gerrit.wikimedia.org/r/97652
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If94b65564ab7264969636559f9c79efc114ccfc1
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>
Gerrit-Reviewer: Arlolra <[email protected]>
Gerrit-Reviewer: Faidon Liambotis <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits