Description
Customer's Getting Failed to initialize plugin:Code sample error in portal even after re-start.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1218126
Whenever we add tinymce in our page we request for few plugins to load, Code sample is a plugin where we are seeing the issue.
from Tokyo we request codesample from "/scripts/tinymce_default/node_modules/sn-tinymce/js/tinymce/plugins/codesample/plugin.min.js" but response for this request is different for the users who are seeing the issue,
Actually some users are getting the older version of codesample for this request
API request headers have Cache-Control: public, Server: snow_adc, next step is to check why we are getting the different version of codesample for the same request.
Steps to Reproduce
1. Load the portal in Sandiego
2. open a page with tinymce editor (tinymce v4), <instance>?id=form&t=problem
3. upgrade the instance to Tokyo
4. open a page with tinymce editor (tinymce v5)
5. plugin error (cache is loading the v4/outdated of few plugins), attach screenshot.
6. NOTE: we didn't get this error to all the users
Workaround
Clearing the browser cache should resolve the issue for the affected users.
Related Problem: PRB1642406