Skip to content

Commit

Permalink
docs: cache invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
ludovicm67 committed May 29, 2024
1 parent 1b8342c commit 826b62c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ You can use following environment variables for configuration:
- `DISABLE_ERROR_CACHING_TTL`: time where requests should be directly sent to the backend after an error occured (default: `30s`)
- `CONFIG_FILE`: the name of the configuration file to use (default: `default.vcl`)
- `ENABLE_LOGS`: enable logs (default: `true`)

## Cache invalidation

You can invalidate the cache entry by sending the same request with the `PURGE` method.

If your backend is sending a `xkey` header, if you send a `PURGE` request with the same `xkey` header, it will invalidate all cache entries with the same tag.

0 comments on commit 826b62c

Please sign in to comment.