Page MenuHomePhabricator

Improve cache behaviors for font files and other nonstandard resource types
ClosedPublic

Authored by epriestley on Apr 27 2016, 1:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 18, 3:11 AM
Unknown Object (File)
Thu, Apr 4, 12:19 AM
Unknown Object (File)
Wed, Apr 3, 9:40 PM
Unknown Object (File)
Wed, Apr 3, 5:27 PM
Unknown Object (File)
Wed, Apr 3, 3:13 PM
Unknown Object (File)
Wed, Apr 3, 3:13 PM
Unknown Object (File)
Wed, Apr 3, 2:39 PM
Unknown Object (File)
Sun, Mar 31, 6:47 PM
Subscribers
None

Details

Summary

Ref T10843. There are actually two separate notions of cacheability here:

  • Is this cacheable by the browser (e.g., should we emit "Expires: long in the future")?
  • Is this cacheable locally (e.g., should we stick it in APC, or just read it off disk every time)?

These got a little mixed up by D15775, so we aren't currently emitting proper "Expires" headers on font files and a few other resource types.

Straighten this out so that we "Expires" these unusual resources correctly.

Test Plan

Verified that .woff files get a proper "Expires" header now, not just CSS/JS.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Improve cache behaviors for font files and other nonstandard resource types.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Apr 27 2016, 1:56 PM
This revision was automatically updated to reflect the committed changes.