Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature Request: JSON Compression #59

Closed
raamdev opened this issue Apr 16, 2015 · 3 comments
Closed

Feature Request: JSON Compression #59

raamdev opened this issue Apr 16, 2015 · 3 comments

Comments

@raamdev
Copy link
Contributor

raamdev commented Apr 16, 2015

See wpsharks/comet-cache#469

The HTML Compressor currently only supports compressing/minifying HTML, CSS, and JavaScript. It would be nice to also support JSON (which appears to only require removing whitespace).

If you want to enable Google Sitelinks Search Box on your site, you need to add a snippet of JSON that uses <script type="application/ld+json"></script> (see wpsharks/comet-cache#467 for a full example). It would be nice if the ZenCache HTML Compressor could also compress this.

@jaswrks
Copy link

jaswrks commented Apr 24, 2015

Also compress type="application/json"

@jaswrks
Copy link

jaswrks commented Apr 24, 2015

Or any type="*json*" for that matter.

@jaswrks
Copy link

jaswrks commented Apr 24, 2015

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants