Hi,
I am following the below article and made the changes to add few headers(Access-Control-Allow-Origin) to be cached along with the response. But if request the page or clientlibs the Access-Control-Allow-Origin header is not coming in the response(Status 304) and only if we pass "?" in the end of the URL, the header is appearing in the response with Status 200
We are using AEM as a cloud service and below are my questions
1. How do I debug where it went wrong.
2. How to see whether headers are cached properly in the dispatcher
3. Is there a way where we can make sure the CORS header(Access-Control-Allow-Origin) is present in the response always for every request when requested by 3rd party services
Solved! Go to Solution.
Views
Replies
Total Likes
As mentioned @Asutosh_Jena_ Try to clear the cache from Dispatcher & CDN if you have using.
Clearing the cache entirely will be required to ensure the headers are appropriately cached on the next request after a /cache/headers configuration update.
Logging is available under com.adobe.granite.cors:
Please refer this article to troubleshoot the CORS header issue: Understand Cross-Origin Resource Sharing (CORS) with AEM | Adobe Experience Manager
Regards,
Raja
304 response status means it's served from cache and the content is not modified at the cache. Once you make the change at dispatcher, you need to flush the cache at dispatcher as well as CDN and then you will always get 200 response status with the updated header.
Thanks!
Hi @Asutosh_Jena_ ,
In AEM as Cloud Service, How to clear the complete dispatcher and CDN(assuming OOTB Fastly CDN) Cache to see whether headers are reflected or not. Please let me know
As mentioned @Asutosh_Jena_ Try to clear the cache from Dispatcher & CDN if you have using.
Clearing the cache entirely will be required to ensure the headers are appropriately cached on the next request after a /cache/headers configuration update.
Logging is available under com.adobe.granite.cors:
Please refer this article to troubleshoot the CORS header issue: Understand Cross-Origin Resource Sharing (CORS) with AEM | Adobe Experience Manager
Regards,
Raja
Yes. I followed this article and in AEM as Cloud Service how do I clear the complete Dispatcher cache ?
Navigate to the cache directory of the website where you have implemented the configuration change and delete all the files under the cache directory .
Regards,
Raja
Hi @RA ,
We are using AEM cloud service and please let me know how can we navigate to a folder and clean all the cache under it.
I want clear all the cache under /etc.clientlibs/*
Thanks in advance.
Can you find the cache root directory from farm file or Virtual host of the website and let us know ?
Views
Likes
Replies