Dynamic media | Community
Skip to main content
February 28, 2023

Dynamic media

  • February 28, 2023
  • 4 replies
  • 1315 views

Hi Adobe Community

 

The dynamic media is loading the dict.lang.json in the author and dispatcher but in the Dispatcher it getting 404 for dict.*.json.

so I have added a filter for the dispatcher to load the particular JSON.

This Json is loading with a huge file size of 2.2MB

this is loading for the actual user pages also

Is it possible not to load the JSON for the user pages? 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

SivakumarKanoori
Community Advisor
Community Advisor
February 28, 2023

@chittepu_bavyasr :

Dont you need json for the user pages, In such case, you can handle as not to load json at the user page level (may be restrict at component or page component level), instead of restricting that at dispatcher level.

 

If you dont need to load the json at all, then you can deny at the dispatcher level as below

/filter

/0002 { type "deny" /extension "json"}

 

Thanks,Siva
Adobe Employee
February 28, 2023

This file loads if some template is using i18n. First check your page template code- if it's loading this file. You can refer OOTB authoring page code - /libs/cq/gui/components/authoring/page/page.jsp (Just an example). Once you figure out the location you can either remove this if you are not using i18n or load it conditionally. 

Manu_Mathew_
Community Advisor
Community Advisor
February 28, 2023
TarunKumar
Community Advisor
Community Advisor
March 1, 2023

Hi @chittepu_bavyasr ,

If you don't want to cache json for specific path, you can apply rule in filter section of dispatcher:

/filter { /type "deny" /path "/content/<your-content-path>*" /extension '(json)' }




March 1, 2023

Hi @tarunkumar 

 

If we add the deny filter the JSON is getting a 404.