question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compoxure changes my javascript

See original GitHub issue

My 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:open
  • Created 8 years ago
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
cliftonccommented, Jan 12, 2018

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.

0reactions
cliftonccommented, Jan 7, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found