1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-21 09:48:47 +02:00
phorge-phorge/src
epriestley 1e74c05ac6 Add timestamps to development-mode static resource URIs
Summary:
When a developer changes CSS, it is normally sufficient to reload the page to get changes to show up, because browsers revalidate resources on reload.

However, if you reload the page and then an Ajax request adds new CSS to the page, this CSS does not trigger revalidation. The developer must currently clear their cache or re-run `scripts/celerity_mapper.php webroot`, to get this request to skip cache. We rarely use CSS over Ajax right now, so this hasn't cropped up much, but Conpherence does use this and clearing the resource is a big pain.

This seems to work fine normally, but I'm worried it might break some of the extra-celerity-resources stuff Facebook is doing.

Test Plan: In development mode, changed `conpherence/message-pane.css` and saw changes reflected on reload. Verified normal page loads do not cause additional HTTP requests. This change has no effect in production mode.

Reviewers: edward, vrana, btrahan

Reviewed By: vrana

CC: aran

Maniphest Tasks: T2428

Differential Revision: https://secure.phabricator.com/D4902
2013-02-11 11:06:41 -08:00
..
aphront Add timestamps to development-mode static resource URIs 2013-02-11 11:06:41 -08:00
applications Add separate exception for when the repository clone is unreadable. 2013-02-11 08:35:00 -08:00
docs Merge branch 'master' into phutil_tag 2013-02-08 17:29:32 -08:00
infrastructure Add timestamps to development-mode static resource URIs 2013-02-11 11:06:41 -08:00
view Move XHProf sampling code out of index.php 2013-02-09 15:47:55 -08:00
__celerity_resource_map__.php When a page is profiled, profile all AJAX requests too 2013-02-09 13:29:47 -08:00
__phutil_library_init__.php Delete license headers from files 2012-11-05 11:16:51 -08:00
__phutil_library_map__.php Conduit file upload method that takes in the files content hash and name. Returns the file phid if successful. Updates to phutil library map. 2013-02-11 06:30:02 -08:00