Can sling exporter request get cached in aem? | Community
Skip to main content
Mario248
Level 7
June 5, 2022
Solved

Can sling exporter request get cached in aem?

  • June 5, 2022
  • 1 reply
  • 718 views

I am planning to use sling exporter to expose few properties to front end application to build a presentation layer. by default all get request get cached in dispatcher. since it is exporter and json response, just want to know how aem manages cache ? Is there any best practice for caching sling exporter ? 

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

of course you can cache the .mode.json requests on the dispatcher. Just add matching caching rules there.

 

/rules
 /2323  { /glob "*model.json" /type "allow" }
  

 

1 reply

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
June 5, 2022

of course you can cache the .mode.json requests on the dispatcher. Just add matching caching rules there.

 

/rules
 /2323  { /glob "*model.json" /type "allow" }