Skip to content
Snippets Groups Projects
Commit e51075cf authored by richard.petersen's avatar richard.petersen :sailboat:
Browse files

Fix: In scaled environments, the version hash might differ from node to node

Solution: Only use the hash of the version
parent d213940d
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ describe('Responses contain custom headers', function () {
it('index.html has version', async function () {
const response = await request(app).get('/index.html')
expect(response.statusCode).to.equal(200)
expect(response.headers.version).to.match(/\d*\.\d*/)
expect(response.headers.version).to.equal('3038606729')
})
it('javascript file contains dependencies', async function () {
......
......@@ -76,7 +76,7 @@ class FileCache {
this._cache = cache
this._manifests = manifests
this._hash = `${+new Date()}.${manifests.__hash__}`
this._hash = manifests.__hash__
this._dependencies = deps
this._oxManifests = viteToOxManifest(manifests)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment