[HELP] With caddy cache

. My Caddy version ( caddy -version ):

Caddy v1.0.3

2. How I run Caddy:

Caddy is managed by a systemd unit file, hence it is run by using the systemctl command.

a. System environment:

Ubuntu 18.04.3 LTS

b. Command:

systemctl start [EDITED_SERVICE_NAME]
systemctl status [EDITED_SERVICE_NAME]

c. Service/unit/compose file:

[Unit]
Description=All that stuff
Documentation=https://caddy.community/top/monthly
Wants=network.target
After=network.target

[Service]
Type=simple
DynamicUser=yes
ExecStart="/usr/local/bin/caddy" "-conf=/home/projects/[EDITED_PATH]"

Restart=always
RestartSec=30

[Install]
WantedBy=multi-user.target

d. My complete Caddyfile:

sub.domain.com {

  log     stdout
  cache
  root /home/projects/[EDITED_PATH]
}

3. The problem I’m having:

Im using caddy with hugo.

Suddenly caddy started to generate tones of caddy-cache-****** (stars are index numbers).
Like for a year there was no problems with caddy-cache but suddenly it started to generate tones and tones of them making my disk space suffering.

Single thing that has been changed on the website itself was new link with query params like example.com/somePage/?someParam=P-*** (start are some random value for example)

Will caddy create separate cache for each unique link with param?
Like
example.com/somePage/?someParam=P-111
example.com/somePage/?someParam=P-222
example.com/somePage/?someParam=P-333
Will generate 3 caches ?

If it is so. How can I turn off caching if params are present in the link?

This topic was automatically closed after 30 days. New replies are no longer allowed.