Expand my Community achievements bar.

SOLVED

Caching Secure Pages

Avatar

Level 6

Hi Team,

 

1) How dispatcher understands that page for which request is coming is logged in / secured /authenticated page? Is there any example? or we do it through some code?

2) How Dispatcher determines that since it is secure PAGES; its not candidate for caching ?

3) How we make dispatcher to cache secure pages as well? 

 

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi @arvind ,

 

here are some high-level details on how the dispatcher validates and caches secure content.

  • Dispatcher determines that the requested content is cached and valid.
  • Dispatcher sends a request message to the render. The HEAD section includes all of the header lines from the browser request.
  • The render calls the auth checker servlet to perform the security check and responds to Dispatcher. The response message includes an HTTP status code of 200 to indicate that the user is authorized.
  • Dispatcher sends a response message to the browser that consists of the header lines from the render response and the cached content in the body.

To implement permission-sensitive caching, perform the following tasks:

  • Develop a servlet that performs authentication and authorization
  • Configure the Dispatcher

More details about implementation can be found in the documentation below

https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/permissions-... 

 

Hope this helps!

 

Regards,

Nitesh

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Hi @arvind ,

 

here are some high-level details on how the dispatcher validates and caches secure content.

  • Dispatcher determines that the requested content is cached and valid.
  • Dispatcher sends a request message to the render. The HEAD section includes all of the header lines from the browser request.
  • The render calls the auth checker servlet to perform the security check and responds to Dispatcher. The response message includes an HTTP status code of 200 to indicate that the user is authorized.
  • Dispatcher sends a response message to the browser that consists of the header lines from the render response and the cached content in the body.

To implement permission-sensitive caching, perform the following tasks:

  • Develop a servlet that performs authentication and authorization
  • Configure the Dispatcher

More details about implementation can be found in the documentation below

https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/permissions-... 

 

Hope this helps!

 

Regards,

Nitesh