Request
Response
Returns binary image data with appropriate headers:| Header | Value | Description |
|---|---|---|
Content-Type | image/webp, image/jpeg, etc. | Image format |
Cache-Control | public, max-age=31536000 | 1 year cache for public images |
ETag | Content hash | For cache validation |
Content Types
| Format | Content-Type |
|---|---|
| WebP | image/webp |
| JPEG | image/jpeg |
| PNG | image/png |
| GIF | image/gif |
Caching
Images are aggressively cached:- Public images: 1 year cache (
max-age=31536000) - Private images: No cache (
no-cache)
ETag header for conditional requests:
304 Not Modified if unchanged.
Access Control
- Public images: Accessible to everyone
- Private images: Only accessible to owner and admins
404 Not Found if accessed without authorization.
Direct Image URL
For embedding in HTML:Errors
| Status | Description |
|---|---|
| 304 | Not Modified (cached) |
| 404 | Image not found or access denied |