Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F57794457
WME varnish head pass
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
BBlack
Dec 10 2024, 12:33 PM
2024-12-10 12:33:00 (UTC+0)
Size
750 B
Referenced Files
None
Subscribers
None
WME varnish head pass
View Options
diff --git modules/varnish/templates/upload-frontend.inc.vcl.erb modules/varnish/templates/upload-frontend.inc.vcl.erb
index ccf56645e7..abfb695b07 100644
--- modules/varnish/templates/upload-frontend.inc.vcl.erb
+++ modules/varnish/templates/upload-frontend.inc.vcl.erb
@@ -340,6 +340,13 @@ sub cluster_fe_miss {
}
call cluster_fe_ratelimit;
+
+ // For WME HEAD reqs to upload, if initial lookup results in a cache miss
+ // (no existing object to satisfy locally), convert to pass-mode to send
+ // the HEAD to ATS directly and not attempt caching any result.
+ if (req.http.X-Client-IP == "3.211.48.168" && req.http.Host == "upload.wikimedia.org" && req.http.User-Agent ~ "^WME/[0-9]") {
+ return (pass);
+ }
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
19010036
Default Alt Text
WME varnish head pass (750 B)
Attached To
Mode
P71676 WME varnish head pass
Attached
Detach File
Event Timeline
Log In to Comment