Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elgentos/localstorageversioning
Highly experimental extension to clear localStorage along with Magento 2's static versioning
https://github.com/elgentos/localstorageversioning
magento2 magento2-extension magento2-extension-free magento2-module
Last synced: about 1 month ago
JSON representation
Highly experimental extension to clear localStorage along with Magento 2's static versioning
- Host: GitHub
- URL: https://github.com/elgentos/localstorageversioning
- Owner: elgentos
- Created: 2018-06-22T09:23:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-12T18:23:51.000Z (about 5 years ago)
- Last Synced: 2024-09-18T01:16:03.971Z (4 months ago)
- Topics: magento2, magento2-extension, magento2-extension-free, magento2-module
- Language: JavaScript
- Size: 8.79 KB
- Stars: 6
- Watchers: 15
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DEPRECATED
# DEPRECATED
This extension turned out to solve one issue, which is mentioned here in the [magento/magento2](https://github.com/magento/magento2) repo; [Huge "product_data_storage" in localStorage hangs the shop](https://github.com/magento/magento2/issues/17813).Please update to Magento >= 2.2.8 or >= 2.3.0 or apply the patch mentioned in that issue.
# Elgentos_LocalStorageVersioning
We've encountered some weird bugs where flushing the localStorage resolved issues (particularly in the checkout but also with the gallery on product pages). These bugs were hard to diagnose and only occurred on machines that have visted the site before.
This little extension adds a Javascript file that checks the deployed version. If the deployed version (found in `/static/deployed_version.txt`) is newer than the last versioned localStorage (which is saved in a cookie), the localStorage is cleared. This should alleviate some issues in certain cases.