fix cache_static for CDN requests

our asset URL in production is the full path to MaxCDN, so this code
would never work.