Implement standard cache tests

See the commits :)

These appear to work fine against the real CDN without any need for a sleep before the second request.