How to force serving of some Javascripts as .js and not .axd - for Cloudflare CDN caching

Palo Stefek asked on June 18, 2017 22:19

Kentico is forcing some Javascripts as ScriptResource.axd?d=P5lTttoqSe... and WebResource.axd?d=pynGkmcFUV13...

Cloudflare does not allow to cache javascripts with other extension than .js

Any clues? Kentico? Make Kentico work with tier 1 CDN?

thanks!

for sure cache everything rule is ruled out for dynamic sites..

Recent Answers


Andrew Radburnd answered on June 19, 2017 13:44

Hi Palo,

I haven't double checked myself just yet but I believe in the past I have used page rules to cache these URLs. If you create a page rules to cache everything for http://www.example.com/*.axd I think you should get what you are looking for. CloudFlare page rules

1 votesVote for this answer Mark as a Correct answer

Alaina Orlean answered on October 2, 2017 13:23

Thanks for posting this question because many time people get stuck to find the answer of this question. I am also waiting for the answer of this thread by subscribing this. Please suggest the best if anyone have experienced this. I will be useful for all of us. Regards Spirit halloween gift card

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.