We are using AEMaaCS and this issue is happening only in a cloud environment, not locally. In the page properties of a content page, we have authored "image" in the Thumbnail/preview tab. Now, this image gets rendered on the page. But the issue is, it's showing a 302 status code in the access/request logs. The interesting part is, it shows 200 status in the browser network tab. Due to this 302 status, images are not caching in the dispatcher.
Here is the image path which shows in the logs
[cm-p46752-dsdsadsad-aem-publish-dewqeqq11-fj4zx] "GET/content/dam/xyz/test.png" 302 20ms
Note: This is not a core image component so the relative path (.../coreimg./...) is not relevant here. In my use case, I have authored the image in Thumbnail/preview tab and I would like to cache this image.
Note: The same image is caching fine in the local AEM SDK and not giving 302 status code. We are seeing 200 status.
Solved! Go to Solution.
Views
Replies
Total Likes
This is normal and expected. Assume this flow:
So this statuscode 302 is an implementation detail for assets, and it avoids that the binary is streamed from the blobstore via AEM to Fastly; instead Fastly retrieves it directly from the blobstore. That's a more efficient use of the AEM resources.
Hi Ritesh - I went through that link earlier, but that didn't help.
1. We don't have any custom rewriter
2. no etc mapping
3. no resource resolving mappings
4. and we are on cloud
5. Issue is happening in author logs also
@karanmahi This could be related to any HTTPs/SSL certificates that are installed/configured on the environments.
No. we didn't do any HTTPs/SSL certificates on cloud.
This is normal and expected. Assume this flow:
So this statuscode 302 is an implementation detail for assets, and it avoids that the binary is streamed from the blobstore via AEM to Fastly; instead Fastly retrieves it directly from the blobstore. That's a more efficient use of the AEM resources.
Views
Likes
Replies