https://bugzilla.wikimedia.org/show_bug.cgi?id=62884

            Bug ID: 62884
           Summary: VisualEditor: Prefer HTML5 Web Storage over cookies
                    for state not needed server-side
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Keywords: performance
          Severity: enhancement
          Priority: Unprioritized
         Component: Technical Debt
          Assignee: jforrester+veteambztick...@wikimedia.org
          Reporter: krinklem...@gmail.com
                CC: jforres...@wikimedia.org, krinklem...@gmail.com,
                    roan.katt...@gmail.com, ryasm...@wikimedia.org,
                    tpars...@wikimedia.org
       Web browser: ---
   Mobile Platform: ---

Cookies can be HTTP-only, but there is no JS-only flag. So any cookies we set,
are sent to the server in every request.

http://..dev/
http://..dev/wiki/Main_Page
http://..dev/w/index.php?title=Main_Page&action=edit
http://..dev/w/api.php...
etc.

All these have the following header when enabling
$wgVisualEditorShowBetaWelcome

Cookie: alphawikiUserID=1; alphawikiUserName=Root; alphawiki_session=*;
ve-beta-welcome-dialog=1;

By using Web Storage (e.g. localStorage or sessionStorage) we keep it out of
the http stack, and read/writes themselves after faster with localStorage as
well.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to