How to prepare own cache for some requests ?
Posted: Tue Jan 30, 2018 8:17 pm
Hi,
Here is what I've already manged to learn:
1. I know how to read and change "post data" ;
2. I know how to block some requests ;
3. I know how to read response data (obtained from server);
Question is:
How to block a request (that it never reach the server) but in the same time - give the response data from local cache.
I don't want to change the response from the server (this one I know how to do).
I want to "simulate" that request reached the server and came back with response. But the response is totally from my cache and server hasn't been used.
Do You have any idea how to acomplish this task ?
Here is what I've already manged to learn:
1. I know how to read and change "post data" ;
2. I know how to block some requests ;
3. I know how to read response data (obtained from server);
Question is:
How to block a request (that it never reach the server) but in the same time - give the response data from local cache.
I don't want to change the response from the server (this one I know how to do).
I want to "simulate" that request reached the server and came back with response. But the response is totally from my cache and server hasn't been used.
Do You have any idea how to acomplish this task ?