I have a search results page, when a user clicks on a result, then clicks the back button I want it to load the search results from the cache instead of going to the server, kind of like how google does it. I'm sending the HTTP headers:
Date: Thu, 23 Jun 2016 18:53:05 GMT
Server: WSGIServer/0.1 Python/2.7.9
Vary: Cookie
Last-Modified: Wed, 22 Jun 2016 00:00:00 GMT
ETag: a
Cache-Control: public, max-age=300
X-Frame-Options: SAMEORIGIN
Content-Type: text/html; charset=utf-8
But when I navigate back to the results using the back button it retrieves the page from the server, which in this case is a development Django server running on my laptop.