Posts tagged 'HTTP'

Serving WebP today

WebP is both a lossless image format, like PNG, which preserves every detail of the original image, and a lossy format, like JPG, which will compress the original image down to a certain quality. WebP support in browsers such as Firefox and IE is virtually nonexistent. However if a big …

CORS Gotchas

CORS stands for Cross-Origin Resource Sharing and represents a method of accessing/sharing resources across domains. These resources can be anything from web fonts to APIs. The CORS standard is only implemented in browsers, since this is the only place where it makes sense. While this is the preferred method …

Notes on RESTful APIs (Updated)

HTTP and REST are not new, we just misused them for a long time. A proper RESTful API should consider the following principles. Resources Resources are discrete entities - like entities from the Entity-Relationship Model. The web is modeled around resources. Everything is a resource, not a web page, not an …