Skip to content

IMG-140: c2pa docs, source cache docs - #16

Merged
DarthSim merged 9 commits into
masterfrom
img-140-c2pa-docs
Nov 24, 2026
Merged

DarthSim merged 9 commits into
masterfrom
img-140-c2pa-docs

Conversation

@gzigzigzeo

Copy link
Copy Markdown
Collaborator

No description provided.

@gzigzigzeo
gzigzigzeo added this pull request to stack #17 September 14, 2026 14:15
@netlify

netlify Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for imgproxy-docs ready!

Name Link
🔨 Latest commit be74205
🔍 Latest deploy log https://app.netlify.com/projects/imgproxy-docs/deploys/6b01cf882052471d1486e04c
😎 Deploy Preview https://deploy-preview-16--imgproxy-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread docs/cache/internal.mdx Resolved
Comment thread docs/cache/internal.mdx Outdated

### Source image caching

In addition to caching processed results, imgproxy can cache the raw bytes of downloaded source images. Set `IMGPROXY_CACHE_SOURCE_ENABLE` to `true` to enable it. This is useful when you request the same source image with many different processing options. Instead of re-downloading the source for every variant, imgproxy fetches it once and serves subsequent requests from the cache.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd put it another way:

Suggested change
In addition to caching processed results, imgproxy can cache the raw bytes of downloaded source images. Set `IMGPROXY_CACHE_SOURCE_ENABLE` to `true` to enable it. This is useful when you request the same source image with many different processing options. Instead of re-downloading the source for every variant, imgproxy fetches it once and serves subsequent requests from the cache.
If you process remote images, like ones from third-party HTTP sources, you may want to cache source images in your storage to keep them close to imgproxy. You can enable source image caching by setting `IMGPROXY_CACHE_SOURCE_ENABLE` to `true`. This way, imgproxy will cache the source image on the first transformation and fetch it from the cache for subsequent ones.

@gzigzigzeo gzigzigzeo Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, including grammarly corrections

Comment thread docs/cache/internal.mdx Outdated

Each tag can be up to 256 characters long and must consist of visible ASCII characters (character codes 33-126), excluding commas. We consider at most 50 tags per request; any beyond that are silently dropped.

The tags are also written to the response headers, so a CDN in front of imgproxy can use them for tag-based cache invalidation. Use the [`IMGPROXY_CACHE_TAGS_FORMAT`](../configuration/options.mdx#IMGPROXY_CACHE_TAGS_FORMAT) config to choose which format(s) the tags are written in — [CloudFront](https://aws.amazon.com/blogs/networking-and-content-delivery/manage-caches-with-precision-using-amazon-cloudfront-invalidation-by-cache-tag/), [Cloudflare](https://developers.cloudflare.com/cache/how-to/purge-cache/purge-by-tags/), both (the default), or neither.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd either remove the formats list from here or copy the accepted values list from the configuration docs. As it is now, the reader will need to check the configuration docs anyway.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, removed formats.

Comment thread docs/cache/internal.mdx Outdated
imgproxy Pro can bypass the internal cache for a single request using the [bypass_cache](../usage/processing.mdx#bypass-cache) processing option:

```imgproxy_url_option
bypass_cache:%bypass

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second argument is missing. Also, we need to add it to the processing.info options docs.

Comment thread docs/configuration/options.mdx Resolved
Comment thread docs/features/c2pa.mdx Resolved
Comment thread docs/usage/processing.mdx Outdated
```

When set to `1`, `t` or `true`, imgproxy will bypass the internal cache and do all the processing and fetching from the source image.
When set to `1`, `t`, or `true`, imgproxy bypasses the internal cache entirely. When set to `1:0`, only the processing cache is bypassed. When set to `0:1`, only the source cache is bypassed.

@DarthSim DarthSim Oct 13, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
When set to `1`, `t`, or `true`, imgproxy bypasses the internal cache entirely. When set to `1:0`, only the processing cache is bypassed. When set to `0:1`, only the source cache is bypassed.
Allows bypassing imgproxy's internal cache.
* `bypass`: when set to `1`, `t`, or `true`, imgproxy bypasses the internal cache entirely.
* `bypass_source`: _(optional)_ defines if imgproxy should bypass source image cache. When not set, its value is equal to `bypass`. When `bypass` is truthy, but `bypass_source` is not (e.g., `1:0`), imgproxy will bypass the results cache but not the source cache. When `bypass_source` is truthy, but `bypass` is not (e.g., `0:1`), imgproxy will bypass the source cache but not the results cache.
Default: `0:0`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also do the same for the getting info docs

Comment thread docs/cache/internal.mdx Resolved
@DarthSim
DarthSim force-pushed the img-140-hw-accel-docs branch from 2d81e2a to ab84b1f Compare November 20, 2026 17:05
@DarthSim
DarthSim removed this pull request from stack #17 November 20, 2026 18:50
Base automatically changed from img-140-hw-accel-docs to master November 20, 2026 18:51
@DarthSim
DarthSim force-pushed the img-140-c2pa-docs branch 2 times, most recently from 45b0d5f to 09170f4 Compare November 21, 2026 17:04
@DarthSim
DarthSim merged commit 41584e6 into master Nov 24, 2026
7 checks passed
@DarthSim
DarthSim deleted the img-140-c2pa-docs branch November 24, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants