mirror of
https://github.com/dergigi/boris.git
synced 2026-02-23 16:04:29 +01:00
fix: image caching issues
1. Fix cache name mismatch: imageCacheService now uses 'boris-images' to match the Service Worker cache name 2. Remove cross-origin restriction: Cache ALL images, not just cross-origin ones. This ensures article images from any source are cached by the Service Worker 3. Update comments to clarify Service Worker caching behavior Images should now be properly cached when loaded via <img> tags.
This commit is contained in:
@@ -10,6 +10,8 @@ export function useImageCache(
|
||||
imageUrl: string | undefined
|
||||
): string | undefined {
|
||||
// Service Worker handles everything - just return the URL as-is
|
||||
// The Service Worker will intercept fetch requests and cache them
|
||||
// Make sure images use standard <img src> tags for SW interception
|
||||
return imageUrl
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user