If you are accessing web pages frequently and they seldom change, cashing the web pages improves your app performance by not accessing it over the web continuously. The cashing can expire periodically to insures a new web page will eventually be read.
Code examples and hints found HERE
Create your own JSON data file.
Copy it to your web server.
Using the code examples and hints, test cached and non-cached web requests.
Test caching by changing the web data before the cache expiration time expires. Execute requests until the returned data changes.
"OPTIMIZE" Your Python Apps By Caching Your API Requests Like THIS (YouTube)
How to return JSON from webservice
Web API (Wikipedia)
A beginner's guide to JSON, the data format for the internet