From aa2538fb50b8986b7cd9785b9d2769da9b2fef7d Mon Sep 17 00:00:00 2001 From: Lars Trieloff Date: Wed, 24 Apr 2019 12:10:56 +0000 Subject: [PATCH] feat(html): rewrite static asset references to ESI includes that provide stable URLs When run in production, all ` + + + + ${content.document.body.innerHTML} + + +`, + }, + }); + + const res = await pipe(once, context, action); + + assert.equal(res.response.body, ` + Hello World + + + + +

Hello World

+ + +`); + }); + + after('Reset Production Mode', () => { + // eslint-disable-next-line no-underscore-dangle + process.env.__OW_ACTIVATION_ID = production; + }); +}); + describe('Test Static Asset Rewriting', () => { it('Ignores non-HTML', () => { assert.deepEqual(rewrite({