Using Ajax with a Standalone Cache

I am working on a standalone application and I would like to make an ajax call to the $ .get () file in the domain that I will cache.

Will the call work if I'm online? I would suppose not, but I wondered if I enabled the static page in the standalone cache if it worked somehow.

+5
source share
2 answers

Short answer: Yes.

If you have a file in the application cache, all HTTP GET requests (including Ajax) will go through the cache. You can consider the Ajax GET request as a normal loading of a browser page, but the results are delivered to your code, and not directly to the user.

+5

All Articles