You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now the script is connected directly, the version from jsdeliver is loaded and because of this the script is cached by the browser. Now we don't have script versioning, and if we did, every vorkspace admin would have to change the link to the script. Thus, when changing the script, the old version will be pulled to the browser - we will need to reset the cache after updating the code.
Proposed solution
The first thing to do is to study how similar scripts that are embedded on the page work. For example, how the script about Yandex metrics works.
The script uses the date, maybe some other dates, to embed the required code on the page. We need to do something similar.
Eventually the way the script is connected should change, there will be a script that executes on the user page and embeds the current version of the widget, without caching.
The text was updated successfully, but these errors were encountered:
Problem description
Now the script is connected directly, the version from jsdeliver is loaded and because of this the script is cached by the browser. Now we don't have script versioning, and if we did, every vorkspace admin would have to change the link to the script. Thus, when changing the script, the old version will be pulled to the browser - we will need to reset the cache after updating the code.
Proposed solution
The first thing to do is to study how similar scripts that are embedded on the page work. For example, how the script about Yandex metrics works.
![image](https://private-user-images.githubusercontent.com/697178/351743427-c9610d8b-968a-4e34-a46a-296f410cb71f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE5MTU2NzEsIm5iZiI6MTcyMTkxNTM3MSwicGF0aCI6Ii82OTcxNzgvMzUxNzQzNDI3LWM5NjEwZDhiLTk2OGEtNGUzNC1hNDZhLTI5NmY0MTBjYjcxZi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyNVQxMzQ5MzFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iZGVlMTFiNGIyZjVhMGE0MzI4NzhiMjM1NzE2MGJmZGQxMTczMzdkMWQ1YjY0ODBiOTA3ZmYyOTc5NjQ3ZWM5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Q0PrDx7ra2dVQrIyS5GpF9H2AZUNvfcDo0jecu_yIz0)
The script uses the date, maybe some other dates, to embed the required code on the page. We need to do something similar.
Eventually the way the script is connected should change, there will be a script that executes on the user page and embeds the current version of the widget, without caching.
The text was updated successfully, but these errors were encountered: