Page MenuHomePhabricator

Cache not being invalidated on new edits on Vaginal steaming
Closed, DuplicatePublic

Description

A user in the Wikimedia Community Discord complained about their edits to https://en.wikipedia.org/wiki/Vaginal_steaming not appearing while logged out. I was able to reproduce the issue (was unable to see their edits to the page while logged out). The edits did appear in the history, viewing the permalink, and while logged in. I purged the page while logged out, which had no effect. I then purged the page while logged-in, which caused the next logged-out read to return the correct version. I was then able to reproduce the issue with my own edits, and found more issues.

Reproduction steps

  1. Navigate to https://en.wikipedia.org/wiki/Vaginal_steaming while logged in, and make an edit.
  2. Navigate to https://en.wikipedia.org/wiki/Vaginal_steaming while logged out
    • Expected behavior: The most recent edit is displayed.
    • Actual behavior: A previous revision is displayed.
  3. Navigate to https://en.wikipedia.org/w/index.php?title=Vaginal_steaming&action=history while logged out
    • Expected behavior: The recent edit is displayed.
    • Actual behavior: The recent edit is not included in the history.
  4. Purge the page while logged out using https://en.wikipedia.org/w/index.php?title=Vaginal_steaming&action=purge
    • Expected behavior: The most recent edit to the page appears.
    • Actual behavior: The old revision is still displayed.
  5. Purge the page while logged in using https://en.wikipedia.org/w/index.php?title=Vaginal_steaming&action=purge
  6. Navigate to https://en.wikipedia.org/wiki/Vaginal_steaming while logged out.
    • Expected behavior: The recent edit appears.
    • Actual behavior: The old revision is still displayed.

While I was initially able to force a new version using action=purge, while writing the reproduction steps I was not able to. Initially, I was also able to see the edit in the history, but was later unable to see the new edit. I was not immediately able to reproduce the issue on another page.

All reproduction steps were performed in Firefox 74.0 on Linux with the developer tools open and "Disable Cache" enabled.

Response Headers

Logged-out page
HTTP/2 200 OK
date: Mon, 13 Apr 2020 18:59:03 GMT
content-type: text/html; charset=UTF-8
server: mw1366.eqiad.wmnet
x-content-type-options: nosniff
p3p: CP="See https://en.wikipedia.org/wiki/Special:CentralAutoLogin/P3P for more info."
content-language: en
vary: Accept-Encoding,Cookie,Authorization
last-modified: Mon, 13 Apr 2020 18:58:59 GMT
content-encoding: gzip
age: 896
x-cache: cp1081 hit, cp1087 hit/3
x-cache-status: hit-front
server-timing: cache;desc="hit-front"
strict-transport-security: max-age=106384710; includeSubDomains; preload
x-client-ip: ****
cache-control: private, s-maxage=0, max-age=0, must-revalidate
accept-ranges: bytes
content-length: 18467
X-Firefox-Spdy: h2
Logged-out History
HTTP/2 200 OK
date: Mon, 13 Apr 2020 18:58:16 GMT
content-type: text/html; charset=UTF-8
server: mw1413.eqiad.wmnet
x-content-type-options: nosniff
p3p: CP="See https://en.wikipedia.org/wiki/Special:CentralAutoLogin/P3P for more info."
content-language: en
vary: Accept-Encoding,Cookie,Authorization
last-modified: Mon, 13 Apr 2020 18:56:01 GMT
content-encoding: gzip
age: 1006
x-cache: cp1083 hit, cp1087 hit/2
x-cache-status: hit-front
server-timing: cache;desc="hit-front"
strict-transport-security: max-age=106384710; includeSubDomains; preload
x-client-ip: ****
cache-control: private, s-maxage=0, max-age=0, must-revalidate
accept-ranges: bytes
content-length: 15255
X-Firefox-Spdy: h2
Logged-out purge
POST to https://en.wikipedia.org/w/index.php?title=Vaginal_steaming&action=purge&wpEditToken=+\\
HTTP/2 302 Found
date: Mon, 13 Apr 2020 19:17:52 GMT
content-type: text/html; charset=utf-8
content-length: 0
server: mw1372.eqiad.wmnet
x-content-type-options: nosniff
p3p: CP="See https://en.wikipedia.org/wiki/Special:CentralAutoLogin/P3P for more info."
vary: Accept-Encoding,X-Forwarded-Proto,Cookie,Authorization
expires: Thu, 01 Jan 1970 00:00:00 GMT
set-cookie: cpPosIndex=1%401586805472%23d5f31679aefafcc5f5a0436ccb53ca1a; expires=Mon, 13-Apr-2020 19:18:02 GMT; Max-Age=10; path=/; secure; HttpOnly
UseDC=master; expires=Mon, 13-Apr-2020 19:18:02 GMT; Max-Age=10; path=/; secure; HttpOnly
UseCDNCache=false; expires=Mon, 13-Apr-2020 19:18:02 GMT; Max-Age=10; path=/; secure; HttpOnly
location: https://en.wikipedia.org/wiki/Vaginal_steaming
age: 0
x-cache: cp1089 miss, cp1087 pass
x-cache-status: pass
server-timing: cache;desc="pass"
strict-transport-security: max-age=106384710; includeSubDomains; preload
x-client-ip: ****
cache-control: private, s-maxage=0, max-age=0, must-revalidate
X-Firefox-Spdy: h2
Logged-in page
HTTP/2 200 OK
date: Mon, 13 Apr 2020 19:26:30 GMT
content-type: text/html; charset=UTF-8
server: mw1325.eqiad.wmnet
x-content-type-options: nosniff
content-language: en
vary: Accept-Encoding,Cookie,Authorization
expires: Thu, 01 Jan 1970 00:00:00 GMT
last-modified: Mon, 13 Apr 2020 19:22:15 GMT
content-encoding: gzip
age: 24
x-cache: cp1081 miss, cp1087 pass
x-cache-status: pass
server-timing: cache;desc="pass"
strict-transport-security: max-age=106384710; includeSubDomains; preload
x-client-ip: ****
cache-control: private, s-maxage=0, max-age=0, must-revalidate
accept-ranges: bytes
X-Firefox-Spdy: h2

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

After waiting a bit, I decided to try again. This is 50 minutes since the edit, and 20 minutes since the last attempt.

  1. Navigate to https://en.wikipedia.org/wiki/Vaginal_steaming while logged out.
    • Expected behavior: New edit is displayed.
    • Actual behavior: The old revision is still displayed.
  2. Logged-out history
    • Expected behavior: New edit is displayed
    • Actual behavior matches expected behavior.
x-cache: cp1083 miss, cp1087 hit/1
x-cache-status: hit-front
server-timing: cache;desc="hit-front"
  1. Logged-out purge
    • Expected behavior: Newest version of page is displayed
    • Actual behavior: The old revision is still displayed.
x-cache: cp1089 miss, cp1087 pass
x-cache-status: pass
server-timing: cache;desc="pass"
  1. Logged-in purge
  2. Logged-out page after logged-in purge
    • Expected behavior: New edit is displayed
    • Actual behavior matches expected behavior.
x-cache: cp1081 miss, cp1087 miss
x-cache-status: miss
server-timing: cache;desc="miss"