SafeCache Test Cases

These test cases should work if SafeCache 0.5 or greater is installed.

Note that cookies are not actually used by this demo, SafeCache simply looks at cookie settings to determine whether to bypass the cache.

For more information about SafeCache, go back to the main page.

Same-site Cache Cookie

Hit refresh. If cookies are enabled, the random number cached inside this frame should remain unchanged. Otherwise, it should reset each time.

Third-party Cache Cookie

Hit refresh. If cookies are enabled and third-party cookie blocking is off, the random number cached inside this off-site frame should remain unchanged. Otherwise, it should reset each time.

Different Referrer Cache Cookie

The identifier below has a different referrer (because it's nested inside an offsite iframe). It should be different from both of the identifiers above, regardless of whether cookies are enabled.

Back-Forward Compatibility

SafeCache co-opts the "cache key" mechanism used to allow back-forward use at sites with POST data. This test ensures that the browser's existing back-forward behavior at sites with POST data is not broken by SafeCache.