Expand my Community achievements bar.

SOLVED

how to check logs for cached pages in aem as a cloud service

Avatar

Level 1

Any idea on how to check page is get cached in dispatcher, CDN or browser in aem as a cloud service using logs or any other way

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Dispatcher header is a custom configuration - it will be available in Response Headers.

To confirm whether a page is being served from the dispatcher cache, you would need access to the dispatcher logs.

also as H_kataria mentioned , you can check HIT or MISS on X-Cache in Response Headers.

The one way to find out - page is served from browser cache or dispatcher cache is:

If a page is served from the dispatcher cache, the server will respond with a 200 OK status, and you might see headers like Cache-Control: public, max-age=31536000 or Age: 1234. However, these headers can also be present if the page is served from a CDN cache or other intermediate caches, so it's not a definitive proof that the page is served from the dispatcher cache.

View solution in original post

4 Replies

Avatar

Community Advisor

For CDN cache, you can check the X-Cache response header in network tab for the request.
It will have values such as HIT or MISS which will give you the idea if it is being served from CDN cache or not.

For dispatcher cache, you can look at dispatcher_httpderror log which you can download from cloud manager, which will give you idea about what is being served from dispatcher cache.
If you have splunk configured, it will be easier to check there.
Hope this helps.

Avatar

Community Advisor

you can check below information to check page is cached or not : 

 

The dispatcher logs can provide information about whether a page is served from the cache or not. You can enable debug logging for the dispatcher to get more detailed information. Look for entries with /dispatcher/cache in the logs. If a page is served from the cache, you will see a log entry similar to GET /content/mysite/en.html -> /dispatcher/cache/content/mysite/en.html.

 

 

Response Headers: You can also check the HTTP response headers of a page request. If a page is served from the dispatcher cache, the Dispatcher: Dispatcher header will be present. If the page is not cached, this header will not be present.

 

Browser Cache: To check if a page is served from the browser cache, you can use the browser's developer tools. In the Network tab, if a page is served from the cache, the Size column will show (from disk cache) or (from memory cache).

 

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

Avatar

Level 1

I can't see dispatcher header in the network tab. I can see just request, response headers and general.

user58240_1-1727787915924.png

 

In size column it's just showing size not from memory or disk cache

user58240_0-1727787817912.png

 

Avatar

Correct answer by
Community Advisor

Dispatcher header is a custom configuration - it will be available in Response Headers.

To confirm whether a page is being served from the dispatcher cache, you would need access to the dispatcher logs.

also as H_kataria mentioned , you can check HIT or MISS on X-Cache in Response Headers.

The one way to find out - page is served from browser cache or dispatcher cache is:

If a page is served from the dispatcher cache, the server will respond with a 200 OK status, and you might see headers like Cache-Control: public, max-age=31536000 or Age: 1234. However, these headers can also be present if the page is served from a CDN cache or other intermediate caches, so it's not a definitive proof that the page is served from the dispatcher cache.