Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

ClinetlIbs in Pblish Instance

Avatar

Level 2

Hi All,

 

Did anyone face issue with client libs in publish instance..like  latest clients code is available but rendering is taking old client libs.What might be the issue?

 

While rendering i added as ? query params then it is reflecting latest code.

 

How to fix any idea?

 

Thanks,

Nani

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @apmagss,

 

You can debug like below:

  1. Check if the latest clientlibs are in publish instance
    1. If not replicate or install them properly
  2. Check if the code is called properly in the component
    1. If not add the latest stuff properly
  3. Clear the cache and load the page
    1. This could fix your issue as it is working for you when the "?" is added to the URL
  4. View the source of the page and check the clientlibs that are loading
    1. This could lead you to the clientlibs that are loading on that page for your component

Hope this helps!

 

Thanks,

Kiran Vedantam.

View solution in original post

8 Replies

Avatar

Correct answer by
Community Advisor

Hi @apmagss,

 

You can debug like below:

  1. Check if the latest clientlibs are in publish instance
    1. If not replicate or install them properly
  2. Check if the code is called properly in the component
    1. If not add the latest stuff properly
  3. Clear the cache and load the page
    1. This could fix your issue as it is working for you when the "?" is added to the URL
  4. View the source of the page and check the clientlibs that are loading
    1. This could lead you to the clientlibs that are loading on that page for your component

Hope this helps!

 

Thanks,

Kiran Vedantam.

Avatar

Level 2
in author it is working fine but in publish same code package installed but not reflecting CSS styles.

Avatar

Community Advisor
Clear the browser cache or replicate the complete code package again to the publisher

Avatar

Community Advisor

Hi,

This is due to dispatcher caching, you should clear the dispatcher caching.



Arun Patidar

Avatar

Level 2
This is on publish instance and laetst code available on publish as well as verified.

Avatar

Employee Advisor

@apmagss ,

 

As you said that While rendering when you added as ? query params then it is reflecting latest code.

Can you please restart your publish environment?

 

Hope tis helps!!
Thanks

Avatar

Community Advisor

Hello,

Can you try hitting the publish instance only (and not dispatcher or VIP) and see if it seems fine? It looks like you are trying to hit the dispatcher/VIP and seeing cached values. Please try to clear any dispatcher and CDN/VIP caching (if any). 

Also you can compare the js or css call for publish vs dispatcher/s to see the code difference eg: http://host:4503/etc.clientlibs/project/clientlibs/component/clientlib-component.js vs  http://host:8080/etc.clientlibs/project/clientlibs/component/clientlib-component.js   After cache clear these should be same