Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-etag
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-etag
Commits
854562bf
Unverified
Commit
854562bf
authored
Mar 22, 2022
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust to varnish-cache 7.1 and later
parent
0447b8e9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
5 deletions
+17
-5
README.rst
README.rst
+3
-1
vfp_etag.c
src/vfp_etag.c
+2
-1
vmod_etag.c
src/vmod_etag.c
+9
-2
vmod_etag.vcc
src/vmod_etag.vcc
+3
-1
No files found.
README.rst
View file @
854562bf
...
...
@@ -64,7 +64,9 @@ Implementation note:
INSTALLING
==========
This vmod is supported for varnish 6.3 and later.
This vmod is supported for varnish 7.1 and later.
Branches exist for older versions.
Building from source
--------------------
...
...
src/vfp_etag.c
View file @
854562bf
...
...
@@ -51,10 +51,11 @@ const char const placeholder[] =
const
size_t
placeholder_l
=
sizeof
(
placeholder
)
-
1
;
static
enum
vfp_status
vfp_etag_init
(
struct
vfp_ctx
*
vc
,
struct
vfp_entry
*
vfe
)
vfp_etag_init
(
VRT_CTX
,
struct
vfp_ctx
*
vc
,
struct
vfp_entry
*
vfe
)
{
struct
etag
*
bh
=
NULL
;
CHECK_OBJ_NOTNULL
(
ctx
,
VRT_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
vc
,
VFP_CTX_MAGIC
);
CHECK_OBJ_NOTNULL
(
vfe
,
VFP_ENTRY_MAGIC
);
...
...
src/vmod_etag.c
View file @
854562bf
...
...
@@ -9,12 +9,19 @@
int
vmod_event_function
(
VRT_CTX
,
struct
vmod_priv
*
priv
,
enum
vcl_event_e
e
)
{
const
char
*
err
;
switch
(
e
)
{
case
VCL_EVENT_LOAD
:
VRT_AddVFP
(
ctx
,
&
VFP_etag
);
err
=
VRT_AddFilter
(
ctx
,
&
VFP_etag
,
NULL
);
if
(
err
!=
NULL
)
{
VRT_fail
(
ctx
,
"Adding etag filter failed: %s"
,
err
);
return
(
1
);
}
break
;
case
VCL_EVENT_DISCARD
:
VRT_Remove
VFP
(
ctx
,
&
VFP_etag
);
VRT_Remove
Filter
(
ctx
,
&
VFP_etag
,
NULL
);
break
;
default:
break
;
...
...
src/vmod_etag.vcc
View file @
854562bf
...
...
@@ -74,7 +74,9 @@ Implementation note:
INSTALLING
==========
This vmod is supported for varnish 6.3 and later.
This vmod is supported for varnish 7.1 and later.
Branches exist for older versions.
Building from source
--------------------
...
...
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