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
Strudel is not able to load newly added samples using GitHub shortcut.
It appear to be loading the sample from the cached strudel.json file even after the file is updated on the server.
This results in errors when trying to load the new samples.
On a computer, users can hard-refresh the cache by pressing Command+Shift+R (macOS) or Ctrl+Shift+R (Windows/Linux). However, clearing the cache on mobile devices is less intuitive and often requires navigating to browser settings to clear the cache.
Steps to Reproduce
Create a pattern to load a sample using the GitHub shortcut.
Add new sample audio files to the GitHub repository and update the "strudel.json" file to include references to the new files.
Update the pattern in Strudel to load the newly added sample.
following error in the console: [cyclist] error: sound {newsoundname} not found! Is it loaded?
On a computer, har-refreshing the browser will load the sample
Potential Solution
The issue appears to stem from the current caching strategy in Astro, which uses a CacheFirst approach for external resources. Switching the caching strategy to StaleWhileRevalidate for strudel.json could resolve the issue.
Strudel is not able to load newly added samples using GitHub shortcut.
It appear to be loading the sample from the cached strudel.json file even after the file is updated on the server.
This results in errors when trying to load the new samples.
On a computer, users can hard-refresh the cache by pressing Command+Shift+R (macOS) or Ctrl+Shift+R (Windows/Linux). However, clearing the cache on mobile devices is less intuitive and often requires navigating to browser settings to clear the cache.
Steps to Reproduce
[cyclist] error: sound {newsoundname} not found! Is it loaded?
Potential Solution
The issue appears to stem from the current caching strategy in Astro, which uses a CacheFirst approach for external resources. Switching the caching strategy to StaleWhileRevalidate for strudel.json could resolve the issue.
Proposed Change:
Update the AstroPWA configuration as follows:
The text was updated successfully, but these errors were encountered: