# HG changeset patch # User Goffi # Date 1607704506 -3600 # Node ID e943b0c8eec574721de06bcf12269d23151eea82 # Parent 25104d31479f0355c4c0165fe878f0f27d24d15d pages: cache is skipped if there are query arguments in URL diff -r 25104d31479f -r e943b0c8eec5 libervia/server/pages.py --- a/libervia/server/pages.py Fri Dec 11 17:35:03 2020 +0100 +++ b/libervia/server/pages.py Fri Dec 11 17:35:06 2020 +0100 @@ -1029,6 +1029,11 @@ #  we are not on the final page, no need to go further return + if request.uri != request.path: + # we don't cache page with query arguments as there can be a lot of variants + # influencing page results (e.g. search terms) + log.debug("ignoring cache due to query arguments") + no_cache = request.getHeader('cache-control') == 'no-cache' profile = self.getProfile(request) or C.SERVICE_PROFILE