Liferay 7.2 + AWS Cloudfront - IssueLiferay 7.2 + AWS Cloudfront - Issuehttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1197970542024-03-29T15:33:30Z2024-03-29T15:33:30ZRE: Liferay 7.2 + AWS Cloudfront - IssuePankaj Kathiriyahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1198143692020-08-21T16:22:27Z2020-08-21T16:22:27ZYes. Already have ticket for this.Pankaj Kathiriya2020-08-21T16:22:27ZRE: Liferay 7.2 + AWS Cloudfront - IssuePankaj Kathiriyahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1198140412020-08-21T16:22:02Z2020-08-21T16:22:02ZIs anyone out there who successfully integrated AWS Cloudfront CDN with Liferay DXP/7.2?Pankaj Kathiriya2020-08-21T16:22:02ZRE: Liferay 7.2 + AWS Cloudfront - IssueChristoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1198085062020-08-20T13:39:33Z2020-08-20T13:39:33ZI checked the code and I see the change. Meh. I am quite sure that we will run into several issues with that code being in a DynamicInclude classe now. Meh.<br />It also seems that the code doesn't use the dynamic cdn url at all. getCDNDynamicResourcesHost is only used in jsps and jspf files. I'd say, that's a bug. If you are using DXP, you could open a ticket for it.Christoph Rabel2020-08-20T13:39:33ZRE: Liferay 7.2 + AWS Cloudfront - IssuePankaj Kathiriyahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1198035002020-08-19T18:26:07Z2020-08-19T18:26:07Z<html><head></head><body>Thank you <strong>Christoph </strong>for your reply.<br>As per Liferay Documentation, <a href="https://docs.liferay.com/dxp/portal/7.2-latest/propertiesdoc/portal.properties.html#Content%20Delivery%20Network">https://docs.liferay.com/dxp/portal/7.2-latest/propertiesdoc/portal.properties.html#Content%20Delivery%20Network</a> It mentions that if below property is used the liferay will work with AWS (and it will not load dynamic resources from CDN.)<pre><code> cdn.dynamic.resources.enabled=false
</code></pre>But in reality, its still tries to get dynamic resources from CDN.<br>Also, on your suggestion on overriding top_head.jsp; In liferay 7.2 these combo javascripts are getting added from Dynamic Include and I am not sure how to override them. I only see options to extend it <a href="https://help.liferay.com/hc/en-us/articles/360018165711-Dynamic-Includes">here</a>.<br>We are getting 404 because combo resources are not getting cached at CDN; I will look into further if reverse proxy like configuration is available with AWS Cloudfront. <br>Thank you Again! </body></html>Pankaj Kathiriya2020-08-19T18:26:07ZRE: Liferay 7.2 + AWS Cloudfront - IssueChristoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1198031722020-08-19T18:06:29Z2020-08-19T18:06:29ZI had a similar issue with 7.0 and ended upĀ using a custom jsp bag to replace top_head.jsp and change the way it behaves. We actually did a lot more, since we have multiple cdn services in use for different parts of the world, but I think, combo was in there. Somewhere in that file the urls for all kinds of includes are inserted in the page.<br /><a href="https://help.liferay.com/hc/en-us/articles/360017881172-JSP-Overrides-Using-Custom-JSP-Bag-">https://help.liferay.com/hc/en-us/articles/360017881172-JSP-Overrides-Using-Custom-JSP-Bag-</a><br />But I am not sure why you get 404 errors. Maybe you should look on cdn side if you could change the configuration. I am not familiar with AWS, but it should be possible to make it behave like a reverse proxy without caching.Christoph Rabel2020-08-19T18:06:29ZLiferay 7.2 + AWS Cloudfront - IssuePankaj Kathiriyahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1197970532020-08-19T17:44:19Z2020-08-19T17:44:19ZI am trying to setup CDN with Liferay using AWS Cloudfront.However, after setting up C