I’m seeing confusing behavior that I’m trying to figure out. Here is the rough scenario:
- I have a modular page template that adds a JS asset:
{% do assets.addJs('theme://js/bar.js') %}
- Initially, everything worked fine, the page with the modular page did load the JS
- Suddenly, the Javascript file is not being included in the page anymore
- Toggling the
js_pipeline
option fromtrue
tofalse
(or vice versa) will temporarily fix this, but shortly after the file will not be included again
What could possibly be the cause for this behavior?
Grav is at the most recent version, 1.6.23.
Update: It seems like turning off the global Cache option prevents this issue from happening. This explains why I never ran into the problem during development and only now that I’ve deployed the page. I will use this is a workaround for now, but it obviously isn’t a fix/answer.