Last modified: 2013-04-12 19:46:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T48801, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46801 - Notification count is outdated on browser-cached pages
Notification count is outdated on browser-cached pages
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Echo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-02 17:53 UTC by Ryan Kaldari
Modified: 2013-04-12 19:46 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ryan Kaldari 2013-04-02 17:53:26 UTC
If you revisit a page you've recently seen, it shows the same notification count as when you last visited the page. The count itself is generated as part of the page (not pulled from JS), and since the cache headers of the page aren't supposed to allow caching, I'm not sure why this bug exists. The cache headers for each page are:
Cache-Control	private, must-revalidate, max-age=0
Expires	Wed Dec 31 1969 16:00:00 GMT-0800 (PST)

Shouldn't that prevent the page from being cached by the client?

Steps to reproduce:
1. Load the Main Page and note what the notification count is
2. Perform some action that generates a notification for yourself (for example, leave a talk page message with another account)
3. Soft-refresh the Main Page

You'll see that the notification count is still the same. If you hard-refresh the page, however, it will update the count.
Comment 1 Ryan Kaldari 2013-04-02 17:56:31 UTC
I should mention this bug only affects logged in users (only logged in users can receive notifications).
Comment 2 Ryan Kaldari 2013-04-02 19:34:22 UTC

*** This bug has been marked as a duplicate of bug 44056 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links