https://bugzilla.wikimedia.org/show_bug.cgi?id=40899
Web browser: ---
Bug #: 40899
Summary: Resources for anonymous users are not cached
Product: MediaWiki
Version: 1.21-git
Platform: All
OS/Version: All
Status: NEW
Keywords: patch, patch-need-review
Severity: minor
Priority: Unprioritized
Component: ResourceLoader
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
Anonymous users have mTouched set to "0" meaning that they have never been
modified. But wfTimestamp() treats this value as "now" causing the exact
opposite. The consequence is that static resources loaded under anonymous user
are never cached.
This looks like a clear bug, even the source code comment suggest that this
value should cause caching of any page. The attached patch fixes this.
This is network communication before:
http://www.vrana.cz/test/mediawiki/before.png and after:
http://www.vrana.cz/test/mediawiki/after.png. The difference between 1.59 s and
2.63 and the 304 status are important.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l