Hey all,
We have asp.net standard bundling in our website which create paths for js/css such as
- /bundles/js?v=p40eNl6CcCesxNATLxv2uMmgN_WnURgbfyzXa2-j-mI1
It was raised in some load tests that cloudflare is not caching these path like it would normal js/css based upon the standard caching profiles as below.
<profiles><add extension=".gif" policy="DontCache" kernelCachePolicy="CacheUntilChange" /><add extension=".png" policy="DontCache" kernelCachePolicy="CacheUntilChange" /><add extension=".js" policy="DontCache" kernelCachePolicy="CacheUntilChange" /><add extension=".css" policy="DontCache" kernelCachePolicy="CacheUntilChange" /><add extension=".jpg" policy="DontCache" kernelCachePolicy="CacheUntilChange" /><add extension=".jpeg" policy="DontCache" kernelCachePolicy="CacheUntilChange" /><add extension=".jpe" policy="DontCache" kernelCachePolicy="CacheUntilChange" /><add extension=".svg" policy="DontCache" kernelCachePolicy="CacheUntilChange" /><add extension=".woff2" policy="DontCache" kernelCachePolicy="CacheUntilChange" /><add extension=".woff" policy="DontCache" kernelCachePolicy="CacheUntilChange" /><add extension=".ttf" policy="DontCache" kernelCachePolicy="CacheUntilChange" /><add extension=".eot" policy="DontCache" kernelCachePolicy="CacheUntilChange" /></profiles>
This looks to be as the cache-control header is set to public. Does anyone know how to get the bundling system to change this cache control header? I've followed some posts online but can't seem to get it working.
Thanks in advance