Blob Blame History Raw
%global vmoddir %{_libdir}/varnish/vmods

Name:           vmod-querystring
Version:        1.0.2
Release:        3%{?dist}
Group:          System Environment/Libraries
Summary:        QueryString module for Varnish Cache
License:        GPLv3+

Source:         %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:  python-docutils
BuildRequires:  varnish >= 4.1.3
BuildRequires:  pkgconfig(varnishapi) >= 4.1.3

Requires:       varnish >= 4.1.3

The purpose of this module is to give you a fine-grained control over a URL's
query-string in Varnish Cache. It's possible to remove the query-string, clean
it, sort its parameters or filter it to only keep a subset of them.

This can greatly improve your hit ratio and efficiency with Varnish, because
by default two URLs with the same path but different query-strings are also
different. This is what the RFCs mandate but probably not what you usually
want for your web site or application.

A query-string is just a character string starting after a question mark in a
URL. But in a web context, it is usually a structured key/values store encoded
with the `application/x-www-form-urlencoded' media type. This module deals
with this kind of query-strings.

%setup -q

%configure --disable-silent-rules CFLAGS="%{optflags}"

rm %{buildroot}%{vmoddir}/*.la

%make_build check

%license LICENSE

* Thu Aug 03 2017 Fedora Release Engineering <> - 1.0.2-3
- Rebuilt for

* Thu Jul 27 2017 Fedora Release Engineering <> - 1.0.2-2
- Rebuilt for

* Wed Apr 26 2017 Dridi Boukelmoune <> - 1.0.2-1
- Bump to 1.0.2
- Set the optflags at configure time

* Sun Sep 25 2016 Dridi Boukelmoune <> - 1.0.1-1
- Initial spec.