1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/server
Arunoda Susiripala 6979e35947 Add content based HASH to main.js and common.js (#1336)
* Use file hashes instead of BUILD_ID.
Now JSON pages also not prefixed with a hash and
doesn't support immutable caching.
Instead it supports Etag bases caching.

* Remove appUpdated Router Events hook.
Becuase now we don't need it because there's no buildId validation.

* Remove buildId generation.

* Turn off hash checks in the dev mode.

* Update tests.

* Revert "Remove buildId generation."

This reverts commit fdd36a5a0a307becdbd1d85ae3881b3a15b03d26.

* Bring back the buildId validation.

* Handle buildId validation only in production.

* Add BUILD_ID to path again.

* Remove duplicate immutable header.

* Fix tests.
2017-03-07 10:43:56 -08:00
..
build Add content based HASH to main.js and common.js (#1336) 2017-03-07 10:43:56 -08:00
config.js Add X-Powered-By header. (#416) 2016-12-19 07:27:47 -08:00
document.js Add content based HASH to main.js and common.js (#1336) 2017-03-07 10:43:56 -08:00
hot-reloader.js Revert "Ignore .next from hot reload watcher" (#1313) 2017-02-28 09:46:11 +01:00
index.js Add content based HASH to main.js and common.js (#1336) 2017-03-07 10:43:56 -08:00
next.js Programmatic API (#310) 2016-12-16 12:33:08 -08:00
on-demand-entry-handler.js Add default entries to main.js (#1343) 2017-03-04 17:29:35 -08:00
read-page.js Add Gzip support for JSON pages (#571) 2016-12-31 21:46:23 +09:00
render.js Add content based HASH to main.js and common.js (#1336) 2017-03-07 10:43:56 -08:00
require.js write assets to disk 2016-10-16 04:49:42 +09:00
resolve.js New test setup (#640) 2017-01-12 13:14:49 +09:00
router.js Allow parsed url to be passed down (#950) 2017-02-02 12:21:08 +05:30