How can I do both of these on AEMaaCS?
Views
Replies
Total Likes
hi @jayv25585659,
For AEMasCS you can determine if a file is served from the CDN or the Dispatcher by examining the HTTP response headers.
The Adobe-provided CDN (Fastly) in AEMaaCS typically adds a debug header that indicates the cache status: look for the X-Cache response header.
Values meaning:
In short, if the X-Cache header value is anything other than HIT (typically MISS or EXPIRED), the request has hit your Dispatcher/AEM Publish stack.
is there a way to know if the page is already in the dispatcher or had to be fetched from the publisher?
In managed services, it's easy to check this (as I mentioned above) since clients can login to the dispatcher.
Thanks again.
Views
Replies
Total Likes
You can also check the Last-Modified response header. If Date and Last-Modified are same then page is served from publisher, if not then it is either from CDN or dispatcher cache.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies