Kailash Yadav 8 Years Ago Very well explained Rahul. I have a question about content upload on CDN, as you mentioned about custom component, do you have any reference of such kind of liferay plugin which is available on marketplace/github? Please sign in to reply. Reply as... Cancel Rahul Mantri Kailash Yadav 8 Years Ago Well - not that i am aware of!Nevertheless - as I mentioned, these days, we do not need to build such components because most of the CDNs already provide configurations to dynamically retrieve content from underlying Origin server. Please sign in to reply. Reply as... Cancel
Rahul Mantri Kailash Yadav 8 Years Ago Well - not that i am aware of!Nevertheless - as I mentioned, these days, we do not need to build such components because most of the CDNs already provide configurations to dynamically retrieve content from underlying Origin server. Please sign in to reply. Reply as... Cancel
Sushil Patidar 8 Years Ago Thanks for sharing Rahul--This blog gives very good understanding of CDN with Liferay. How ServicePreAction identify that particular resource in a plugin need to be served as static resource and append CDN url? Please sign in to reply. Reply as... Cancel Kailash Yadav Sushil Patidar 8 Years Ago Hi Sushil, have a look on initThemeDisplay() method in ServicePreAction. It set CDN host in ThemeDisplay object if CDN is configured in portal. When we use themeDisplay.getPathThemeJavaScript() or getPathThemeImages, it return path with CDN url.You can have a look on these github pages for more details:https://github.com/liferay/liferay-portal/blob/6.2.x/portal-impl/src/com/liferay/portal/events/ServicePreAction.java#L152https://github.com/liferay/liferay-portal/blob/6.2.x/portal-service/src/com/liferay/portal/theme/ThemeDisplay.java#L1024 Please sign in to reply. Reply as... Cancel
Kailash Yadav Sushil Patidar 8 Years Ago Hi Sushil, have a look on initThemeDisplay() method in ServicePreAction. It set CDN host in ThemeDisplay object if CDN is configured in portal. When we use themeDisplay.getPathThemeJavaScript() or getPathThemeImages, it return path with CDN url.You can have a look on these github pages for more details:https://github.com/liferay/liferay-portal/blob/6.2.x/portal-impl/src/com/liferay/portal/events/ServicePreAction.java#L152https://github.com/liferay/liferay-portal/blob/6.2.x/portal-service/src/com/liferay/portal/theme/ThemeDisplay.java#L1024 Please sign in to reply. Reply as... Cancel
Nurul Amin 6 Years Ago AKAMAI has the capability to dynamically retrieve content from underlying origin servers and Liferay works with them seamlessly.In this scenario, do we need to setup - CDN Host HTTP- CDN Host HTTPS- CDN Dynamic Resources Enabledexclusively in Liferay?In my understanding, for AKAMAI we do not need to setup these parameters. Please guide. Please sign in to reply. Reply as... Cancel