You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,8 @@ Each repository supports the following options:
44
44
45
45
| Key | Required | Description |
46
46
|-----|----------|-------------|
47
-
|`suffixes`| yes | File suffixes that are eligible for caching (e.g. `.rpm`, `.deb`) |
47
+
|`suffixes`| yes | File suffixes that are eligible for caching (e.g. `.rpm`, `.deb`). Use `"*"` to cache all files. |
48
+
|`exclude`| no | List of file names to exclude from caching, even when they match a suffix. Useful with the `"*"` wildcard suffix. |
48
49
|`mirrors`| yes | Ordered list of upstream mirror URLs |
49
50
|`retries`| no | Number of attempts per mirror before moving to the next one (default: `1`) |
50
51
@@ -73,6 +74,29 @@ on to the next one. An exponential backoff is applied between retry attempts
73
74
(1s, 2s, 4s, ...). Only 5xx (server error) responses trigger a retry — client
74
75
errors like 404 are returned immediately.
75
76
77
+
### Cache exclusions
78
+
79
+
When using the wildcard suffix `"*"` to cache all files, certain files (such as
80
+
metadata or timestamps) should not be cached because they change frequently. The
81
+
`exclude`option lets you list file names that will always be fetched from
82
+
upstream, bypassing the cache:
83
+
84
+
```yaml
85
+
repositories:
86
+
gentoo:
87
+
suffixes:
88
+
- "*"
89
+
exclude:
90
+
- layout.conf
91
+
- timestamp.mirmon
92
+
- timestamp.dev-local
93
+
mirrors:
94
+
- https://distfiles.gentoo.org/
95
+
```
96
+
97
+
Files whose name matches an entry in the `exclude` list are served directly from
98
+
the upstream mirror without being stored in the local cache.
99
+
76
100
## Client Configuration
77
101
78
102
With the provided configuration a number of Linux distributions are handled. See below where and how the clients must be adjusted to use your instance of pkgproxy. Replace `<pkgproxy>` with the host name of the pkgproxy instance:
0 commit comments