{"action":"created","issue":{"url":"https://api.github.com/repos/bminer/node-static-asset/issues/15","labels_url":"https://api.github.com/repos/bminer/node-static-asset/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/bminer/node-static-asset/issues/15/comments","events_url":"https://api.github.com/repos/bminer/node-static-asset/issues/15/events","html_url":"https://github.com/bminer/node-static-asset/issues/15","id":54317703,"number":15,"title":"it is possible to assetFingerprint() URLs matching a particular pattern without rewriting templates?","user":{"login":"mikemaccana","id":172594,"avatar_url":"https://avatars.githubusercontent.com/u/172594?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemaccana","html_url":"https://github.com/mikemaccana","followers_url":"https://api.github.com/users/mikemaccana/followers","following_url":"https://api.github.com/users/mikemaccana/following{/other_user}","gists_url":"https://api.github.com/users/mikemaccana/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemaccana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemaccana/subscriptions","organizations_url":"https://api.github.com/users/mikemaccana/orgs","repos_url":"https://api.github.com/users/mikemaccana/repos","events_url":"https://api.github.com/users/mikemaccana/events{/privacy}","received_events_url":"https://api.github.com/users/mikemaccana/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bminer/node-static-asset/labels/question","name":"question","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-14T12:42:02Z","updated_at":"2015-01-16T19:40:48Z","closed_at":"2015-01-15T22:39:36Z","body":"Sorry if the answer's obvious, but I wasn't sure from reading the docs.\r\n\r\nEg, all my images are underneath `/images`. I'd like to fingerprint all of them, without having to rewrite all my templates to use the view helpers.\r\n\r\nWould making all non-fingerprinted URLs redirect to the fingerprinted version work? \r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/bminer/node-static-asset/issues/comments/70309895","html_url":"https://github.com/bminer/node-static-asset/issues/15#issuecomment-70309895","issue_url":"https://api.github.com/repos/bminer/node-static-asset/issues/15","id":70309895,"user":{"login":"bminer","id":73755,"avatar_url":"https://avatars.githubusercontent.com/u/73755?v=3","gravatar_id":"","url":"https://api.github.com/users/bminer","html_url":"https://github.com/bminer","followers_url":"https://api.github.com/users/bminer/followers","following_url":"https://api.github.com/users/bminer/following{/other_user}","gists_url":"https://api.github.com/users/bminer/gists{/gist_id}","starred_url":"https://api.github.com/users/bminer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bminer/subscriptions","organizations_url":"https://api.github.com/users/bminer/orgs","repos_url":"https://api.github.com/users/bminer/repos","events_url":"https://api.github.com/users/bminer/events{/privacy}","received_events_url":"https://api.github.com/users/bminer/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T19:40:48Z","updated_at":"2015-01-16T19:40:48Z","body":"Just to clarify...\r\n\r\n> If a GET request for /images/button.jpg results in a 302, then the browser will still continue to request /images/button.jpg.\r\n\r\nWhat I was trying to say was... the HTML would contain the URL `/images/button.jpg`, so the browser would issue a GET request for `/images/button.jpg`.  The server responds to this request with 302 and the fingerprint URL.  Then, the browser would request `/images/button.jpg?v=38d89f8a`, for example.  That's 2 HTTP requests.  If the browser needs to GET `/images/button.jpg` again, it would again hit the server with an HTTP request, which responds with 302 again.  If the asset hasn't changed, the server returns `/images/button.jpg?v=38d89f8a` again.  In this case, the browser knows that it doesn't need to issue another HTTP request."}}