Does the D8 version work with Varnish?

Created on 7 April 2021, about 3 years ago
Updated 14 September 2023, 9 months ago

Problem/Motivation

The D7 version of the module only works with Varnish when session_cache module is used enabled and configured. That module is not available for D8. What additional code, if any, is required to get smart_ip work on a D8/9 site with Varnish?

πŸ’¬ Support request
Status

Active

Version

4.0

Component

Documentation

Created by

πŸ‡¬πŸ‡§United Kingdom John_B London (UK), Worthing (UK), Innsbruck (Tirol)

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States pianomansam

    @darrenwh please read Smart IP page under the "Configuration / Cache Performance Note".

    Am I blind, or does that section no longer exist? I, too, would like to know how to get this running behind Varnish or nginx

  • πŸ‡¬πŸ‡§United Kingdom John_B London (UK), Worthing (UK), Innsbruck (Tirol)

    EU Cookie Compliance checks location using JS, and that works with Varnish or db caching. As far as I can see the module will not work reliably with a cached request so an uncached Ajax request to check location makes sense.

Production build 0.69.0 2024