You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have made my page at https://larsejaas.com work offline, but I am struggling to find a better way to precache images.
Right now I have told my serviceworker to precache all webP images at first visit, and that obviously is not feasible in the long run (some of the large images come in up to 6 different sizes - dooh!).
My solution right now is using gatsby-plugin-offline with these settings:
Anyone found a good solution for this? Is there a way to get gatsby image to add some sort of size-prefix or similar so I could just precache a "medium" size for all images in png as an offline fallback or am I missing something obvious here???
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have made my page at https://larsejaas.com work offline, but I am struggling to find a better way to precache images.
Right now I have told my serviceworker to precache all webP images at first visit, and that obviously is not feasible in the long run (some of the large images come in up to 6 different sizes - dooh!).
My solution right now is using gatsby-plugin-offline with these settings:
Anyone found a good solution for this? Is there a way to get gatsby image to add some sort of size-prefix or similar so I could just precache a "medium" size for all images in png as an offline fallback or am I missing something obvious here???
Beta Was this translation helpful? Give feedback.
All reactions