disable cache at development
This commit is contained in:
parent
ffc5ae4619
commit
56ec01f32a
|
|
@ -6,6 +6,11 @@ import {
|
|||
} from 'workbox-strategies'
|
||||
import { ExpirationPlugin } from 'workbox-expiration'
|
||||
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
registerRoute(/\.js/, new NetworkOnly())
|
||||
registerRoute(/\.css/, new NetworkOnly())
|
||||
}
|
||||
|
||||
registerRoute(
|
||||
/\/preview\/\d+/,
|
||||
new CacheFirst({
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user