cachecontrol icon indicating copy to clipboard operation
cachecontrol copied to clipboard

Support for forcing cache-refresh / cache-usage on a per-resource basis?

Open kratsg opened this issue 5 years ago • 1 comments

Is there a way to either:

  • clear the cache for a session
  • clear the cache for a given request

kratsg avatar Mar 10 '20 23:03 kratsg

This PR is a small, experimental step toward addressing #219.

It introduces an optional per-request cache_control="no-cache" flag that skips cache lookup for that request only, without changing default behavior or invalidating existing cache entries.

The intent is to explore whether a lightweight, opt-in API like this is useful, before considering broader cache control features.

Happy to adjust or drop this if maintainers feel a different direction would be preferable.

MANAS225 avatar Dec 22 '25 17:12 MANAS225