If you want to see if the page has been cached, you can check the file in your shared folder. Rails displays a page with the extension .html. If you want to check the subsequent request, then perhaps save the original html response (which was cached) and compare it with the subsequent request. Or maybe use a timestamp in a cached file (although I can see that this is problematic). Are you looking for a specific implementation in rspec, cucumber, etc.?
source share