---
url: /api/symbols/workbox-swkit/recipes/staticresourcecache.md
---

# staticResourceCache

Function @vite-pwa/workbox-swkit/recipes

```ts
staticResourceCache(options?: StaticResourceOptions): void
```

An implementation of the \[CSS and JavaScript files recipe]https://developers.google.com/web/tools/workbox/guides/common-recipes#cache_css_and_javascript_files
