Back to feed
Dev.to
Dev.to
7/5/2026
The HTTP QUERY method (RFC 10008) is here — and caching it correctly is harder than it looks

The HTTP QUERY method (RFC 10008) is here — and caching it correctly is harder than it looks

Short summary

HTTP QUERY (RFC 10008) adds a new request method combining GET semantics (safe, idempotent, cacheable) with POST's body support — solving a decade-old API design gap for complex reads like search filters. The critical challenge: cache keys must incorporate request bodies, and incorrect JSON normalization can leak data between clients. The http-queryable library provides correct caching for Express, Fastify, and browsers.

  • RFC 10008 introduces HTTP QUERY, a method that pairs GET semantics (safe, idempotent, cacheable) with body support for complex read operations
  • Caching is non-trivial: bodies must become part of cache keys, and JSON normalization errors can cause dangerous data leaks between clients
  • http-queryable library handles caching correctly across Express, Fastify, and browser environments

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more