Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix spec
  • Loading branch information
jamesdaniels committed Sep 16, 2021
commit 98febce773e5560536b3393ae32f60bd86362227
42 changes: 42 additions & 0 deletions src/schematics/ng-add.jasmine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@ const initialFirebaseJson = `{
\"value\": \"public,max-age=31536000,immutable\"
}
]
},
{
\"source\": \"/@(ngsw-worker.js|ngsw.json)\",
\"headers\": [
{
\"key\": \"Cache-Control\",
\"value\": \"no-cache\"
}
]
}
],
\"rewrites\": [
Expand Down Expand Up @@ -184,6 +193,15 @@ const overwriteFirebaseJson = `{
\"value\": \"public,max-age=31536000,immutable\"
}
]
},
{
\"source\": \"/@(ngsw-worker.js|ngsw.json)\",
\"headers\": [
{
\"key\": \"Cache-Control\",
\"value\": \"no-cache\"
}
]
}
],
\"rewrites\": [
Expand Down Expand Up @@ -264,6 +282,15 @@ const projectFirebaseJson = `{
\"value\": \"public,max-age=31536000,immutable\"
}
]
},
{
\"source\": \"/@(ngsw-worker.js|ngsw.json)\",
\"headers\": [
{
\"key\": \"Cache-Control\",
\"value\": \"no-cache\"
}
]
}
],
\"rewrites\": [
Expand All @@ -288,6 +315,15 @@ const projectFirebaseJson = `{
\"value\": \"public,max-age=31536000,immutable\"
}
]
},
{
\"source\": \"/@(ngsw-worker.js|ngsw.json)\",
\"headers\": [
{
\"key\": \"Cache-Control\",
\"value\": \"no-cache\"
}
]
}
],
\"rewrites\": [
Expand Down Expand Up @@ -379,6 +415,12 @@ const universalFirebaseJson = {
key: 'Cache-Control',
value: 'public,max-age=31536000,immutable'
}]
}, {
source: '/@(ngsw-worker.js|ngsw.json)',
headers: [{
key: 'Cache-Control',
value: 'no-cache',
}],
}],
rewrites: [
{
Expand Down