Skip to content

Commit

Permalink
🚑 bug: hotfix Safari cannot play mp4
Browse files Browse the repository at this point in the history
  • Loading branch information
AnakinYuen committed Aug 23, 2020
1 parent fb55906 commit 2aeb7a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { RangeRequestsPlugin } from 'workbox-range-requests';
import { registerRoute } from 'workbox-routing';
import { CacheFirst, NetworkFirst, StaleWhileRevalidate } from 'workbox-strategies';

precacheAndRoute(self.__WB_MANIFEST);

registerRoute(
/\/(about|contact|home|skill|work)?$/,
new NetworkFirst({
Expand Down Expand Up @@ -129,6 +127,8 @@ registerRoute(
}),
);

precacheAndRoute(self.__WB_MANIFEST);

self.addEventListener('install', (event) => {
event.waitUntil(
caches
Expand Down

0 comments on commit 2aeb7a8

Please sign in to comment.