Last modified: 2014-10-06 09:56:11 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 T40168, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38168 - extract2.php: Implement HTTP 304 caching for www portals
extract2.php: Implement HTTP 304 caching for www portals
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: performance
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-04 17:22 UTC by Krinkle
Modified: 2014-10-06 09:56 UTC (History)
4 users (show)

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


Attachments

Description Krinkle 2012-07-04 17:22:45 UTC
The last modified timestamp is available and already being included:

header( 'Cache-Control: s-maxage=3600, must-revalidate, max-age=0' );
header( "Last-modified: $lastmod" );

We could extend this further and make it respond with "304 Not Modified" (without body content) for requests that have the same version cached. Should save a fair amount of bandwidth. 


https://gerrit.wikimedia.org/r/gitweb?p=operations/mediawiki-config.git;a=blob;f=extract2.php;hb=HEAD
Comment 1 Krinkle 2012-11-12 13:00:45 UTC
Ping cf. hackathon in Amsterdam last week.
Comment 2 Nemo 2013-04-04 22:36:34 UTC
(In reply to comment #1)
> Ping cf. hackathon in Amsterdam last week.

Should it be added to the new hackathon's topics? :)
Comment 3 Krinkle 2014-10-06 09:55:40 UTC
Seems http://www.wikipedia.org and similar hits are now actually yielding 304 Not Modified client-side. I suspect maybe the switch to Varnish made this happen at the abstraction layer there.

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


Navigation
Links