Skip to content

Instantly share code, notes, and snippets.

@charlesBochet
Last active July 4, 2017 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charlesBochet/86a0986b1d000a12e77bc4c27ce4e6ee to your computer and use it in GitHub Desktop.
Save charlesBochet/86a0986b1d000a12e77bc4c27ce4e6ee to your computer and use it in GitHub Desktop.
runtimeCaching: [
{
urlPattern: /^https:\/\/thecatapi\.com\/api\/images\/get\.php\?id/,
handler: 'cacheFirst'
},
{
urlPattern: /^https:\/\/(\d+)\.media\.tumblr\.com\//,
handler: 'cacheFirst'
},
{
urlPattern: /^http:\/\/(\d+)\.media\.tumblr\.com\//,
handler: 'cacheFirst'
},
...
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment