Skip to content

Do Not Cache User Agents doesn't work. Cache hit. #968

@ovchynnikov

Description

@ovchynnikov

Hi, I'm trying not to cache pages based on User-Agent Googlebot. It simply doesn't work, and cache is always hit.

user@user-MacBook-Pro ~ % curl -I -H "User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" https://mydomainname.com/nice-to-meet-you/
HTTP/2 200
date: Tue, 07 Apr 2026 15:26:05 GMT
content-type: text/html; charset=UTF-8
x-xss-protection: 1; mode=block
referrer-policy: strict-origin-when-cross-origin, origin-when-cross-origin
permissions-policy: geolocation=(), midi=(), camera=(self), usb=(), magnetometer=(), accelerometer=(), gyroscope=(), microphone=()
x-content-type-options: nosniff
x-dns-prefetch-control: on
server: system
x-litespeed-cache: hit

LiteSpeed Cache Settings v6.5.0.1

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions