NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.92k stars 2.66k forks source link

How to control cache time #3148

Open 404gods opened 1 year ago

404gods commented 1 year ago

I have reverse-proxyed a website and enabled "cache assets", how do I clear the cache regularly?

Mrered commented 1 year ago

I also want to know how to further configure the caching strategy for caching.

joshtrichards commented 8 months ago

To the best of my knowledge, there is no NPM provided documentation for the built-in "Cache Assets" feature.

All of the hard-coded caching configuration is located here though:

https://github.com/NginxProxyManager/nginx-proxy-manager/blob/develop/docker/rootfs/etc/nginx/conf.d/include/assets.conf

To figure out what's it's doing you'll have to dig through actual Nginx documentation.

Then perhaps use this approach within NPM to try to customize things.

github-actions[bot] commented 1 month ago

Issue is now considered stale. If you want to keep it open, please comment :+1: