We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee31f12 commit c6e9b0eCopy full SHA for c6e9b0e
scripts/webpack.client.config.js
@@ -66,10 +66,12 @@ module.exports = (options = {}) => merge(
66
}],
67
})
68
].concat(prod ? [
69
+ // Exclude everything from the precache and add everything we want to be
70
+ // cached at runtime.
71
new GenerateSW({
- exclude: [/\.html$/],
72
+ exclude: [/.*/],
73
runtimeCaching: [{
- urlPattern: new RegExp("^(?!.*\.html)"),
74
+ urlPattern: /\.(?:png|jpg|jpeg|svg|css|js|ttf|woff|eot|woff2|wasm)$/,
75
handler: "StaleWhileRevalidate",
76
options: {
77
cacheName: "code-server",
0 commit comments