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.

Support listing files as JSON on the main CDN via Accept header

See original GitHub issue

I’m aware that the API supports listing files as JSON, but the availability guarantees and infrastructure for that service don’t provide the same level of confidence as the main CDN.

Please consider supporting Accept: application/json on the directory listing pages so that these can serve the same content as their API-equivalents with the benefits of the main CDN’s infrastructure.

❤️ all your work 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MartinKolarikcommented, Mar 11, 2019

Btw, I checked our Cloudflare stats for jsdelivr.com now - it includes both data.jsdelivr.com (API) and jsdelivr.com (website) so I can’t say exactly what part of it is just the API, but:

  • CF served 520M requests (30 days)
  • our API servers got 73M requests, of which 70M were not cachable by CF (unlike listings); for cacheable requests, the CDN cache hit rate was 99.4%
  • our website servers got 3.2M requests
0reactions
ggoodmancommented, Mar 11, 2019

Thanks for the feedback @MartinKolarik, I will indeed take it for a spin and let you know if there are problems. I’m closing the issue because I don’t think there is anything actionable left.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP headers and common query string parameters for JSON
A PUT request header. When used, Cloud Storage only accepts the request if the size of the request's content is within the header's...
Read more >
Working with lists and list items with REST | Microsoft Learn
Property Description Type GroupString Group identifier used for drill‑down feature. string Field Specifies a special field that should be included. string FilterData Data specified by a...
Read more >
HTTP request headers · Cloudflare Fundamentals docs
Currently, this header is a JSON object, containing only one key called “scheme”. The header will be either HTTP or HTTPS, and it...
Read more >
HTTP/1.1: Header Field Definitions
The Accept request-header field can be used to specify certain media types which are acceptable for the response. Accept headers can be used...
Read more >
Configure Hosting behavior | Firebase Hosting - Google
json file define which files in your project directory should be deployed to your Firebase project. The default hosting configuration in a firebase.json...
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