Closed Bug 1142146 Opened 9 years ago Closed 4 years ago

MDN isn't serving cached pages when we might expect it to

Categories

(developer.mozilla.org Graveyard :: Performance, defect)

x86
macOS
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: wbamberg, Unassigned)

References

Details

Over in bug 980006, we're fetching MDN pages using XMLHttpRequest. In bug 98006, comment 28, Luke suggested we should check that we are sending cache negotiation headers, so MDN can serve cached responses.

It seems like we are sending the correct headers, but are not getting cached responses. In particular, we're sending If-None-Match, and it is matching the Etag in the response, but we're still getting a 200 response back, including an X-Cache-Info header "not cacheable; response had too large vary data", which might or might not mean something.

Request headers:
***
Host: developer.mozilla.org
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:39.0) Gecko/20100101 Firefox/39.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Cookie: <some cookies>
Connection: keep-alive
If-Modified-Since: Mon, 29 Dec 2014 02:40:55 GMT
If-None-Match: "ecdb5e299137ffa7b910bd52aebaed3524276e90"
***

Response headers:
***
Access-Control-Allow-Credentials: false
Access-Control-Allow-Methods: GET
Access-Control-Allow-Origin: *
Connection: Keep-Alive
Content-Encoding: gzip
Content-Type: text/html; charset=utf-8
Date: Wed, 11 Mar 2015 17:04:08 GMT
Etag: "ecdb5e299137ffa7b910bd52aebaed3524276e90"
Keep-Alive: timeout=5, max=992
Last-Modified: Mon, 29 Dec 2014 02:40:55 GMT
Server: Apache
Transfer-Encoding: chunked
Vary: Cookie, Accept-Encoding
X-Backend-Server: developer1.webapp.scl3.mozilla.com
X-Cache-Info: not cacheable; response had too large vary data
X-Robots-Tag: noindex
X-kuma-revision: 713873
x-frame-options: Allow
***
No longer blocks: 980006
Severity: normal → minor
:wbamberg, can you talk about the scale of this problem? The bug triage team thinks it may be a problem for devtools users; how many people or requests are affected by it? Is that going to grow dramatically soon?
Flags: needinfo?(wbamberg)
I think from the devtools perspective we can leave this as minor. If Luke thinks it might give MDN problems server-side, we can look at it again.
Flags: needinfo?(wbamberg)
Depends on: 1155308
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.