Compoxure changes my javascript
See original GitHub issueMy web app doesn’t work when I run it through compoxure and I found out it is because the Javascript is changed. I tried changing the hogan delimiters from {{ }}
to <% %>
but then compoxure doesn’t replace my cx element anymore.
Issue Analytics
- State:
- Created 8 years ago
- Comments:13 (11 by maintainers)
Top Results From Across the Web
Compoxure Composition Middleware - GitHub
Compoxure will let you serve these fragments of the page at different TTLs, and if you add middleware that parses your user cookie...
Read more >compoxure - npm
Composition proxy replacement for ESI or SSI uses htmlparser2 to parse HTML from backend services and compose fragments from microservices into the response....
Read more >How can I ensure that the latest version of my javascript code ...
What we're having to do is tell our client to do a hard refresh (ctrl+f5) before viewing any changes. Obviously this approach is...
Read more >Compoxure - Medium
It also changes (from a data and caching perspective) whenever user ... Now — imagine your the team that has the actual responsibility...
Read more >bundle-version - npm Package Health Analysis - Snyk
Exposes middleware and plugin that responds with Compoxure header ... Snyk scans all the packages in your projects for vulnerabilities and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Investigate making an extra check somewhere around here: https://github.com/tes/compoxure/blob/master/src/middleware/proxy.js#L158 that checks what the content-type is in the response, and if it’s not
text/html
then send the content straight through unparsed.Ok, that makes sense, great to hear that you figured it out and it still works. I’ll put something in the docs about it.