Client side JS Caching with GetResource.ashx

pankaj saxean asked on December 7, 2022 06:56

Hi Team,

I'm working on the caching part in Kentico so as per the documentation I have applied CMSPhysicalFilesCacheMinutes web.config key.

But its handle only the css file so need to know how same thing we achieve for JavaScript files.

Recent Answers


Jeroen Fürst answered on December 8, 2022 08:37

Hi Pankaj,

Which Kentico version and development model are you using? Also, where are you storing your files?

Cheers, Jeroen

0 votesVote for this answer Mark as a Correct answer

pankaj saxean answered on December 8, 2022 08:57

Hi Jeroen,

I'm using Kentico 12 with hotfix 12.0.95 version and development model MVC used. All the static file stored in the directories under the content

0 votesVote for this answer Mark as a Correct answer

Jeroen Fürst answered on December 12, 2022 08:27

Hi Pankaj,

Thank you for the additional info! Are you using the GetResource handler to retrieve the JS files? How do you know that the caching is not working specifically for JS files?

Cheers, Jeroen

0 votesVote for this answer Mark as a Correct answer

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