Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
ceb74b60
Commit
ceb74b60
authored
Nov 10, 2014
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn bereq.uncacheable read-only
This had the same effect as writing to beresp.uncacheble.
parent
980243cb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
26 deletions
+4
-26
cache_vrt_var.c
bin/varnishd/cache/cache_vrt_var.c
+0
-14
v00025.vtc
bin/varnishtest/tests/v00025.vtc
+0
-1
generate.py
lib/libvcc/generate.py
+4
-11
No files found.
bin/varnishd/cache/cache_vrt_var.c
View file @
ceb74b60
...
...
@@ -204,20 +204,6 @@ VRT_r_beresp_##field(VRT_CTX) \
/*--------------------------------------------------------------------*/
void
VRT_l_bereq_uncacheable
(
VRT_CTX
,
unsigned
a
)
{
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
ctx
->
bo
,
BUSYOBJ_MAGIC
);
if
(
ctx
->
bo
->
do_pass
&&
!
a
)
{
VSLb
(
ctx
->
vsl
,
SLT_VCL_Error
,
"Ignoring attempt to reset bereq.uncacheable"
);
}
else
if
(
a
)
{
ctx
->
bo
->
do_pass
=
1
;
}
}
unsigned
VRT_r_bereq_uncacheable
(
VRT_CTX
)
{
...
...
bin/varnishtest/tests/v00025.vtc
View file @
ceb74b60
...
...
@@ -52,7 +52,6 @@ varnish v1 -arg "-i J.F.Nobody" -vcl+backend {
}
sub vcl_backend_fetch {
set bereq.uncacheable = false;
if (bereq.between_bytes_timeout < 10s) {
set bereq.http.quick = "please";
}
...
...
lib/libvcc/generate.py
View file @
ceb74b60
...
...
@@ -360,17 +360,10 @@ sp_variables = [
(
'bereq.uncacheable'
,
'BOOL'
,
(
'backend'
,
),
(
'backend_fetch'
,
),
"""
Indicates whether the object requested from the backend is
going to be uncacheable - either because the request was an
explicit pass from the client side or a hit on an uncacheable
("hit for pass") object.
Setting this variable in vcl_backend_fetch makes the object
uncacheable.
Clearing the variable has no effect and will log the warning
"Ignoring attempt to reset bereq.uncacheable".
(
),
"""
Indicates whether this request is uncacheable due
to a pass in the client side or a hit on an existing
uncacheable object (aka hit-for-pass).
"""
),
(
'bereq.connect_timeout'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment