If we use the BrowserCachePolicy Never Firefox 3 still caches the page for a short amount of time. If we add "no-store" value for the Cache-Control header Firefox does no longer cache the page.
Our code looks like this:
We haven't yet tested with other browsers.
There are some other issues we have with SetExpirationHeaders:
- it tests for BrowserCachePolicyResult identity instead of using the return value of #getExpirationDate
- it sets the Expires header twice, to two different values
I'll attach a patch later this day.