-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LiteMage and Hyvä-template not working #40
Comments
Hey @martinstoehr thanks for submitting this. This solution still depends on the JS library and ideally we wouldn't rely on any in this case. If you have a bit of time and are able to, can you test if the following code will solve the issue for you?
it's very similar to yours, but it doesn't rely on any JS library. Let me know. Thanks! |
Hey @kokers , i will try out within the next days and let you know. thanks. |
Hey @kokers, your code works with both luma and hyva themes. great! cheers, |
Thank you for testing the solution. Much appreciated. Glad to hear it works without issues. Will look into adding this in future release. |
We ran in an issue with Litemage and our new Magento Hyvä-Template.
Every page with a custom-vary was not in cache (x-litespeed-cache: miss).
Because of Litemage is using Require-Js and Hyvä is using Alpine.js the require-call in litespeed/module-litemage/view/frontend/templates/inject/customvary.phtml was failing.
For our needs we changed this
to this
and Litemage works with Hyvä!
"x-litespeed-cache: hit,litemage" on every custom-vary-page!
Maybe you find this useful and implement it in a future release...
thx
Martin
The text was updated successfully, but these errors were encountered: