I have recently found that we use Cache-Control:no-cache
in all the WebApi responses. I know that before browsers caching did vary a lot and you never knew if the browser can cache you json, so it was important.
As far as I remember now, no modern browser is caching ajax requests so this header is not needed. But I would really like to double check and ask here about the behavior, since could not found any recent posts on the topic.
So the question really is: Do we still need to set Cache-Control:no-cache
for web api calls from SPA application and if yes, then which browsers do the caching?
Aucun commentaire:
Enregistrer un commentaire