I need to include third-party html content in CQ component(throught url). The third-party html is updated regularly. What is the best practice to do this in CQ? Should I put down the html and cache it in CRX with a job and load the content in CQ component?
I think the a lot of people has the same situation.
I think the other way can be instead of going through all the way long why dont you make that html chunk available on your web server at predefined location and make use at same path with same name it updates regularly. Now create a component where set this static path as property so that you need to worry about changing the path value and in code fetch that path and use HTML chunk to display. If your HTML update frequency is too high and you dont want to cache it then you can set no-cache in component scriptlet.