3
I have a web system using Ajax that is constantly updated. I need to implement a way to update the user cache of files. js and . css when these files are modified.
I tried to solve it in two ways. The first is the use of variable url to call these files forcing the browser to always search the resources and not use the cache, but this way the system was slow because it did not count on the benefits of the cache.
The other way was with the Html5 manifest cache with scripts to dynamically create the manifest. But as the system has constant image upload, each time an image is uploaded the manifest is updated to a new version, requiring users to renew the cache for all files.
There is a way to use the cache normally as it works, but when there is change of files . js and . css, that the browser be informed the files to be renewed in the cache, from a version control? Does anyone know an approach that works more or less like this?
Hello Rafael Pedroso, the stackoverflow community seeks to answer specific questions. We do not respond based on our opinions. I ask you to format your question better so that it becomes specific with a problem you are having.
– Asura Khan