Basically my question is simple, the answer might not be. What’s the best way to implement caching in an overall application using aurelia?
Because my solution is having a few caching issues. At the moment we do not use any system to maintain cache. We just add a timestamp on the fetch requests to force a new request everytime which is not by far a good solution.
I took a look at that https://aurelia.io/docs/api/fetch-client/interface/RequestInit/property/cache/ and I realized that there is a property in header to be used in the fetch clients for caching, but the properties itself does not say much. For some we may infer what they mean, like no-cache… But for the others I’m not sure. Also which would be the best approach to use one or other? Maybe have some kind of state or something across the application, or this cache configurations are enough and do the job very well?