Comments (7)
My idea is to add disable_proto and disable_port to the cache_keys block and move ttl and stale into the cache_keys to configure them.
This simplifies cache configuration for different static file types while improving cache efficiency.
from cache-handler.
Additionally, the subcommand hide just hides the key value and does not remove the headers (Age
and Cache-Status
), which is slightly different than expected, and should perhaps be broken down into hide key, hide header, and hide off, which would make it easier for users who want to remove the headers.
from cache-handler.
Hello @Zerorigin, I can add more directive to enable/disable the key. Btw I could add a TTL and stale directive to the cache_key block to be able to override the values. What do you think?
from cache-handler.
Hello @Zerorigin, I can add more directive to enable/disable the key. Btw I could add a TTL and stale directive to the cache_key block to be able to override the values. What do you think?
This is great, just what I need.
from cache-handler.
@Zerorigin in the next release you'll be able to create your own key template. e.g.
key {
template "{host}-something-constant-{method} other {query}"
}
from cache-handler.
And I still have to implement the TTL and stale directly in the cache_keys.
from cache-handler.
@Zerorigin in the next release you'll be able to create your own key template. e.g.
key { template "{host}-something-constant-{method} other {query}" }
The rest isn't urgent. 😄
Thanks for your hard work. ❤️
from cache-handler.
Related Issues (20)
- Ability to force caching even if client sends no-cache HOT 2
- Caddy with cache-handler crashes frequently on virtuozzo/jelastic HOT 9
- big memory usage, memory leak? HOT 1
- Missing response on cached paths HOT 32
- Prevent caching based on response header HOT 12
- Maintenance and docs re: integrating upstream changes
- Last-Modified header and cache skip
- Cache a Redirect Response from reverse_proxy HOT 9
- Debug logging but without body content HOT 5
- Incomplete responses from reverse_proxy (context cancelled) are being cached
- http.handlers.cache Reused response from concurrent request with HOT 1
- Using cache-handler in production HOT 9
- http.handlers.cache Reused response from concurrent request with the key... HOT 2
- Support NutsDB In Memory mode HOT 1
- Impossible to open the Nuts DB.db.buildIndexes error: crc error HOT 5
- Redis with Large Cached Content Fails Resulting in Memory Leak HOT 2
- Disable Request Coalescing HOT 8
- Impossible to set value into Badger, Value with size 1048681 exceeded 1048576 limit
- Impossible to set value into Redis, invalid expire time in 'set' command HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cache-handler.