I am not sure if the function that is currently installed will really support CDN, as it implicitly relies on url to contain hash code to prevent browser caching.
But I can try to help you try to get there, and maybe this is possible today ... One of the problems that could potentially be an obstacle is that the BundleHandler will return 304 to any packet requests containing the IfLastModified header, as it is assumed that The browser cache is always valid due to the fingerprint in the URL.
Can you add some details about how you display package links? Are you using something like Scripts.Render ("~ / Scripts / plugin / pluginjs")?
Your script package tag should look something like this:
Good: <script src="/fbt/bundles/js?v=wvLq7H7qEZB2giyIRn7aEZAxhHOb2RfTYYh2HMd9EqM1"></script>
If script tags reference an unhandled package without a version line, this will probably explain the caching issues you see:
Not good: <script src="/fbt/bundles/js></script>
Hao Kung Aug 28 '12 at 20:22 2012-08-28 20:22
source share