Created
January 27, 2019 18:03
-
-
Save MrPeker/8b3a025acd74f243b1a39a550034951d to your computer and use it in GitHub Desktop.
Cache Javascript and CSS Workbox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Stale While Revalidate stratejisiyle CSS ve JS varlıklarınızı önbellekleyin | |
workbox.routing.registerRoute( | |
/\.(?:js|css)$/, | |
workbox.strategies.staleWhileRevalidate(), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment