Does anyone know how i could access the exact url that the resources plugin would spit out?
I want to use the resources plugin to optimize transfer of my javascript files, however, the application i'm writing is an html5 offline app that uses cache manifesting. Per the rules of cache manifesting, the cache manifest file must reference a file exactly as it appears in the html page.
The resources plugin adds a bunch of query string info and the checksum on an aggregated file . In order for resource plugin optimization and cache manifesting to work, I need to spit out the exact url that the resources plugin would in my cache manifest file.
Here's some examples of what I'm talking about:
The resources plugin will spit out the following in my html output:
<script src="/awesome-app/static/36wl8Nwm8L7ZZMSbV6NVQPfi6xCx6DcVV0wFDCYRyv5.js" type="text/javascript" ></script>
If i could get hold of the 36wl8Nwm8L7ZZMSbV6NVQPfi6xCx6DcVV0wFDCYRyv5.js
part of the above url, I could include it in my cache manifest file like so:
CACHE MANIFEST
# rev 192
NETWORK:
*
CACHE:
static/36wl8Nwm8L7ZZMSbV6NVQPfi6xCx6DcVV0wFDCYRyv5.js //<-- this would be the aggregated file!
Thanks for the help!