Cache Control Pre Check and Post Check Headers in IE
In this article
No, cache control pre-check and post-check headers are not supported in modern versions of Internet Explorer, and were only conditionally supported in older versions. While Internet Explorer 8 and earlier had limited support for these headers as part of Microsoft’s proprietary extensions to HTTP caching, they are obsolete and not recognized in IE11 or any current browser environment.
Background on HTTP Cache Control Headers
HTTP cache control headers are directives used by web servers and clients to manage how and when resources are cached. Standard headers like Cache-Control: no-cache, max-age, and must-revalidate are defined by the HTTP/1.1 specification (RFC 7234) and are widely supported across browsers. However, pre-check and post-check were non-standard extensions introduced by Microsoft for Internet Explorer’s memory and disk cache management.
These headers were primarily used in environments where users accessed intranet or enterprise web applications through Internet Explorer, especially in the early 2000s. They allowed finer control over when a cached resource should be validated against the origin server, theoretically improving perceived performance by reducing wait times for revalidation.
How Pre-Check and Post-Check Worked
The pre-check and post-check directives were appended to the Cache-Control header, typically in conjunction with standard directives. They functioned as time-based indicators for Internet Explorer’s cache manager:
- pre-check: Specified when IE should begin checking the origin server for updates.
- post-check: Indicated when the cached content should be considered stale and require revalidation.
For example, a server might send:
Cache-Control: public, pre-check=259200, post-check=172800
This meant the content was public (could be cached by intermediaries), with a pre-check at 3 days (259,200 seconds) and a post-check at 2 days (172,800 seconds). Once the post-check time passed, IE would mark the item as stale and revalidate on next use. The pre-check was a hint to start background validation before the user accessed the resource, though actual implementation varied.
Browser Support and Deprecation
Support for pre-check and post-check was limited to Internet Explorer versions 5.5 through 8, and even then, behavior was inconsistent. These headers were never part of any official HTTP standard and were ignored by all other browsers, including Firefox, Chrome, and Safari.
With the release of Internet Explorer 9, Microsoft began aligning more closely with web standards. By IE11—the final version of Internet Explorer—these proprietary directives were no longer honored. Microsoft Edge, which replaced IE, is based on Chromium and does not support them either. As of 2023, Internet Explorer is retired and no longer supported by Microsoft, making these headers effectively obsolete.
Common Problems and Misconfigurations
One frequent issue arose when developers or administrators included pre-check and post-check in server configurations assuming broad compatibility. This led to unintended caching behavior in non-IE browsers, which would ignore the unknown directives but still apply other parts of the Cache-Control header. For example:
Cache-Control: public, pre-check=3600, post-check=1800, must-revalidate
In Chrome or Firefox, only public and must-revalidate would be processed. The result might be more aggressive caching than intended on non-IE browsers, while IE itself might not behave consistently across versions.
Another problem was debugging cache behavior. Because these headers were non-standard, browser developer tools provided little to no visibility into how or whether they were being applied. This made troubleshooting difficult, especially in mixed-browser environments.
Modern Alternatives and Best Practices
Today, developers should rely on standard HTTP caching headers that are universally supported. These include:
max-age: Specifies how long a resource is considered fresh.s-maxage: Overridesmax-agefor shared caches like CDNs.must-revalidate: Ensures stale content is revalidated with the origin server.no-cache: Forces revalidation before serving cached content.no-store: Prevents caching entirely.
For background updates or optimistic caching strategies, modern approaches include:
- Using
stale-while-revalidate(RFC 5861), which allows serving stale content while asynchronously fetching an update—supported in most modern browsers. - Implementing service workers to manage custom caching logic in Progressive Web Apps.
- Leveraging ETag and
If-None-Matchheaders for efficient revalidation.
These methods are standardized, predictable, and work consistently across all current browsers, including mobile clients.
Frequently Asked Questions
Do any modern browsers support pre-check and post-check?
No modern browser supports pre-check and post-check. These were Microsoft-specific extensions for older versions of Internet Explorer and are not recognized by Chrome, Firefox, Safari, Edge, or any other current browser.
Why did Internet Explorer use pre-check and post-check?
Microsoft introduced these headers to improve perceived performance in enterprise environments by allowing background cache validation. The idea was to reduce user-visible delays by checking for updates before a resource was requested, but the approach was non-standard and inconsistently implemented.
Can I still use pre-check and post-check on legacy systems?
While older versions of Internet Explorer (5.5–8) could interpret these headers, they are unreliable even in that context. Given that these browsers are no longer supported and pose security risks, relying on them is strongly discouraged, even in legacy environments.
What happens if I include pre-check and post-check in my Cache-Control header?
Most browsers will ignore the unknown directives but still process the valid parts of the header. For example, Cache-Control: public, pre-check=3600, post-check=1800, must-revalidate would be treated as public, must-revalidate in non-IE browsers. This can lead to inconsistent caching behavior across clients.
Are there any tools to detect if pre-check and post-check are being used?
You can inspect HTTP response headers using browser developer tools (Network tab) or command-line tools like curl or httpie. Look for Cache-Control headers containing pre-check or post-check. Automated audits in tools like Lighthouse or web performance analyzers may flag non-standard directives as potential issues.
Is there a direct replacement for pre-check and post-check in modern HTTP?
The closest standard equivalent is stale-while-revalidate, which allows a stale response to be served while a background update is fetched. This achieves a similar user experience benefit—reducing perceived latency—without relying on browser-specific behavior.