HelloZeroNet / HelloZeroNet/ZeroNet

Provide a way to change cache duration

Open
#2,253 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
18.8k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

ZeroNet only supports cache for around 20 minutes and it is not possible to configure this. However, some sites are updated more frequently and some are updated less frequently.

**Describe the solution you'd like**

It should be possible to change cache duration both by instance owner (with `--cache_for` argument) and by site owner (with `content.json`).

Command argument should be default cache duration or all sites, but `content.json` entry should overwrite it. Site owners should also be able to specify cache duration for specific files and specific content types.

This would enable to cache sites that don't update often for long time and sites that update quickly for short time.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.