this post was submitted on 14 Jun 2023
2 points (100.0% liked)

Self Hosted - Self-hosting your services.

14592 readers
5 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules

Important

Cross-posting

If you see a rule-breaker please DM the mods!

founded 4 years ago
MODERATORS
 

Hello,

This may not be the place to ask this, but has anyone had the issue of pages that are proxied through Caddy not "auto-refreshing"?

For example, I use glances (similar to HTOP) to monitor my unraid server, and when it is reverse proxied I need to force a ctrl-F5 to see updates. When using the local IP, it updates every few seconds as normal.

Is there a setting I need to change to allow Caddy to do auto-refreshing?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 2 years ago (4 children)

try changing the cache options maybe?

[–] [email protected] 1 points 2 years ago (3 children)

Nailed it, that was the issue. Missed the line of code that had my cache options set too long. Thank you!

[–] [email protected] 1 points 2 years ago (2 children)

Are you able to point me to where i can find the cache options? I'm also new to Caddy and want to make sure i'm not making any silly mistakes.

[–] [email protected] 2 points 2 years ago (1 children)

This line here was my problem:

Cache-Control "public,max-age=86400,s-maxage=86400,max-stale=3600,stale-while-revalidate=86400,stal>
}

If you want cache control you can just lower the values, I chose to just remove the setting altogether and the problem was solved.

[–] [email protected] 2 points 2 years ago

Ah OK.. i don't have that in my Caddyfile so i guess i won't have this issue.