* Fix regression in cachability of generated CSS and JS for MonoBook skin,
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 26 Sep 2006 05:30:12 +0000 (05:30 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 26 Sep 2006 05:30:12 +0000 (05:30 +0000)
commit373393b0f0ba3060a078cd819f9572a606894492
tree188bd5f394bf0d0ebad5264af293d2750e528a88
parente57335a63366be3ce1a213dd781bab66dab07da2
* Fix regression in cachability of generated CSS and JS for MonoBook skin,
  while avoiding clobbering of different users' cached data

Added a "Vary: Accept-Encoding, Cookie" a few weeks ago on generated CSS/JS
files to prevent different users' styles from clobbering each other in
caches. Unfortunately browsers don't seem to handle Vary well, and this
caused a lot of extra hits due to poor caching.

This is now removed, replaced with an explicit "Cache-Control: private"
or "Cache-Control: public" depending on the presence of an open session
cookie or logged-in state. This should restore the friendly caching
behavior while ensuring that no users' generated data will clobber
anyone else's.

To additionally ensure that public cached CSS doesn't clobber the
private bits, smaxage=0 is set on the URL used for logged-in views,
as already done for JS.
RELEASE-NOTES
includes/RawPage.php
includes/SkinTemplate.php