Skip to content

Instantly share code, notes, and snippets.

@jimwhimpey
Last active November 10, 2022 22:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimwhimpey/96d3113fbd75e08228e84fa4bb53263b to your computer and use it in GitHub Desktop.
Save jimwhimpey/96d3113fbd75e08228e84fa4bb53263b to your computer and use it in GitHub Desktop.
An example of our cachable asset manifest that gets inlined into the top of our service worker file during by the build
self.__serviceWorkerManifest= [
// This is the HTML file that we initial load, we normalize
// any Slack client URL to request this same file
{
url: "/boot/client.html",
hash: "52de82b6a380a284b31a6e7be0999050"
// Of course our JS and CSS assets are cached
}, {
url: "https://a.slack-edge.com/bv1-6-9b2646d/client-lazy-components.2ce886f.cache-gantry-1565714987.min.js",
hash: "2ce886f1b462f7437012"
}, {
url: "https://a.slack-edge.com/bv1-6-9b2646d/workflow-builder-boot-styles.9aac741.cache-gantry-1565714987.css",
hash: "4a8e64dcd5aa1ceedac6"
// We also cache json files that contain all our non-en-US strings
}, {
url: "https://a.slack-edge.com/bv1-6-9b2646d/gantry-translations_pt-BR.a25e7fec0bffe71cf0f0.min.json",
hash: "97cb53d5ff277506a2012c84dfc538a9"
}
// ...
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment