Add Halal food finder, ingredient scanner, and UI updates
This commit is contained in:
@@ -27,6 +27,21 @@ export default defineConfig({
|
||||
urlPattern: /^https:\/\/api\.alquran\.cloud\/.*/i,
|
||||
handler: 'StaleWhileRevalidate',
|
||||
options: { cacheName: 'quran-api', expiration: { maxEntries: 50, maxAgeSeconds: 86400 * 7 } }
|
||||
},
|
||||
{
|
||||
urlPattern: /^https:\/\/unpkg\.com\/leaflet.*/i,
|
||||
handler: 'CacheFirst',
|
||||
options: { cacheName: 'leaflet-lib', expiration: { maxEntries: 5, maxAgeSeconds: 86400 * 30 } }
|
||||
},
|
||||
{
|
||||
urlPattern: /^https:\/\/.*\.tile\.openstreetmap\.org\/.*/i,
|
||||
handler: 'StaleWhileRevalidate',
|
||||
options: { cacheName: 'osm-tiles', expiration: { maxEntries: 200, maxAgeSeconds: 86400 * 7 } }
|
||||
},
|
||||
{
|
||||
urlPattern: /^https:\/\/cdn\.jsdelivr\.net\/npm\/tesseract\.js.*/i,
|
||||
handler: 'CacheFirst',
|
||||
options: { cacheName: 'tesseract', expiration: { maxEntries: 10, maxAgeSeconds: 86400 * 30 } }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user