liferay / liferay-js-toolkit

GNU Lesser General Public License v3.0
52 stars 41 forks source link

Angular adapted portlet MS Edge cache issue #609

Closed SabyasachiChattaraj closed 4 years ago

SabyasachiChattaraj commented 4 years ago

Changes made to Angular adapted portlet in Edge (edgeHTML) does not show up. It needs manual cache clear. But the same thing works fine in chrome

Steps :

  1. Create and deploy Angular adapted portlet
  2. Shows up fine in both Chrome and MS Edge
  3. Introduce a button in app.component.html
  4. Redeploy
  5. Button shows up upon page reload in Chrome but not in Edge
  6. If you clear cache in Edge and reload then button shows up.
izaera commented 4 years ago

This has to do with the server caches, not the JS Toolkit. In general it's a good practice to disable server caches when developing, as Liferay Portal sometimes practices a very aggressive caching strategy.

You can see recommended developer settings in the portal-developer.properties file of the Portal's source tree.