Page MenuHomePhabricator

"clearyourcache" message should only show information for the specific browser being used (instead of all browsers)
Open, Needs TriagePublic

Description

https://translatewiki.net/wiki/MediaWiki:Clearyourcache/en

Could the clearyourcache message be changed based on what browser you're using, instead of showing how to clear the cache for every browser? It would make it less cluttered, especially for wikis (which?) that don't put it into a list and instead have it as a block of text.

For example, if you're using Firefox, the message would be

Note: After publishing, you may have to bypass your browser's cache to see the changes. You can do this in your browser by holding down the Shift key while clicking Reload (or by pressing Ctrl-Shift-R). For details and instructions about other browsers, see Wikipedia:Bypass your cache.

instead of (current default, as of 2024):

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.

See also:

Event Timeline

Aklapper renamed this task from clearyourcache changing based on browser to "clearyourcache" message should only show information for the specific browser being used (instead of all browsers).May 21 2018, 10:18 AM
Aklapper updated the task description. (Show Details)
Vvjjkkii renamed this task from "clearyourcache" message should only show information for the specific browser being used (instead of all browsers) to akcaaaaaaa.Jul 1 2018, 1:08 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from akcaaaaaaa to "clearyourcache" message should only show information for the specific browser being used (instead of all browsers).Jul 1 2018, 4:32 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.

Change 471558 had a related patch set uploaded (by D3r1ck01; owner: Alangi Derick):
[mediawiki/core@master] Make clearyourcache i18n message browser based

https://gerrit.wikimedia.org/r/471558

I don't know if MediaWiki has a package that does browser detection, but as a POC, this can work well. I've used an external vendor to achieve this and it looks good but I'm not sure if external vendors are accepted.

So if there is a MW way of doing this, I'll be glad to amend the patch to use it. Thanks :)

xSavitar added a project: User-xSavitar.
xSavitar moved this task from Backlog to Doing [WIP] on the User-xSavitar board.
xSavitar removed a project: User-xSavitar.

Change 471558 abandoned by D3r1ck01:
Make clearyourcache i18n message browser based

Reason:
No longer working on this!

https://gerrit.wikimedia.org/r/471558

I am workin on this task as part of IIIT-Hyderabad wiki hackathon

@Nemoralis: I doubt that this is so important for everyone out there that it justifies User-notice?

@Nemoralis: I doubt that this is so important for everyone out there that it justifies User-notice?

I don't think so? @Quiddity what do you think about this?

A magic word output of the user's browser would allow this. Would it impact caching?

Quiddity removed a project: User-notice.

Re: User-notice - I agree this is probably not suitable for Tech News. (I.e. There are hundreds of regular improvements to MediaWiki which are great but are not worth distracting everyone with announcements about).

Re: The task itself - I think the Description was unclear, and I've attempted to clarify it a bit.
However, it's still not great, as the proposed replacement-message currently:

  • references a page that isn't available on most wikis (Wikipedia:Bypass your cache -- This is only on 18 wikis),
  • and it doesn't mention the OS-variant, e.g. for Firefox on Mac users.
    • Plus it's unclear whether this task would (or should) also include OS-detection (and string-customization) as well as Browser-detection.

Overall, I'd recommend just declining this task, and instead just replacing the current default message with the more concise version that is used in some wikis (e.g. Enwiki) that provides a single-command for all browsers/OSes. I.e. https://en.wikipedia.org/wiki/MediaWiki:Clearyourcache -- (without the final sentence) -- Keep It Simple!