Page MenuHomePhabricator

Properly transform Celerity resource URIs with query strings and anchors
ClosedPublic

Authored by epriestley on May 16 2014, 4:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 2, 3:30 PM
Unknown Object (File)
Wed, Mar 20, 6:14 PM
Unknown Object (File)
Feb 9 2024, 3:55 AM
Unknown Object (File)
Dec 20 2023, 7:48 AM
Unknown Object (File)
Nov 23 2023, 1:24 PM
Unknown Object (File)
Nov 15 2023, 2:58 AM
Unknown Object (File)
Nov 15 2023, 2:57 AM
Unknown Object (File)
Nov 13 2023, 2:21 PM
Subscribers

Details

Summary

See https://github.com/facebook/phabricator/commit/6a45b7e67091a217a28414cdcc8d02b50875a7d6

These URIs have "?hack=iefix#ieieielol" on them, which the parser doesn't recognize as a known resource, so it errs on the side of caution by not rewriting.

Instead, strip this bit off, attempt to rewrite, then put it back on.

Test Plan

Loaded font-awesome.css locally and saw properly rewritten URIs.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Properly transform Celerity resource URIs with query strings and anchors.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: btrahan, chad.
chad edited edge metadata.
This revision is now accepted and ready to land.May 16 2014, 4:26 PM

Specifically, the issue is not rewriting these URIs (in font-awesome.css) correctly:

url(/rsrc/externals/font/fontawesome/fontawesome-webfont.eot?v=4.1.0);

On many (but not all) configurations, that will still work if we don't rewrite it, but generally works less well than it could/should: it won't get a hash update when it changes, it won't get caching headers added consistently, and won't be able to CDN in the future.

epriestley updated this revision to Diff 21741.

Closed by commit rP0b4f2c8508c6 (authored by @epriestley).