-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a way to exclude certain files from the cache #10
Comments
Mads, I'm willing to do the work and submit a PR for this. Are you cool with the above syntax? Or did you have a different idea how to exclude certain file types from the cache? |
Rather than a .RoutesToExcludeFromCache, I realized what I really need is a "cache only the fingerprinted resources" strategy. I'm going to submit a PR for that. |
Now that the CacheFingerprinted strategy is implemented, this issue is solved. |
I know this issue has been closed with an alternative solution, but this would be a great option to have. For example it would be useful to exclude API calls and external requests from getting cached. While this can be done using the CacheFingerprinted strategy it prevents additional assets from caching, unless specified manually in the pre-cache. |
Continuing from issue #8, we should provide a way for users to exclude certain request patterns from the cache.
For my scenario, I need to exclude all .mp3 files. Something like:
Not hard set on that syntax, opened to suggestions.
The text was updated successfully, but these errors were encountered: