List of steps to reproduce (step by step, including full links if applicable):
- Set $wgMainCacheType to CACHE_NONE
- Be logged in
What happens?:
Pages are served with HTTP 200 instead of 304 even though If-Modified-Since header is present and the article has not been modified.
What should have happened instead?:
When there have been no changes since If-Modified-Since header, return 304 status code.
Deleting this line fixes the issue for me:
https://github.com/wikimedia/mediawiki/blob/8d2be7706dbd8e1f5ad08c9c9189be7e893088d4/includes/user/User.php#L2302
I believe the reason is that $mQuickTouched is always the current time when using CACHE_NONE (I don't fully understand why), so the correct value in $mTouched is never used.
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
MediaWiki 1.36.2