Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to delete the cache for a specific domain via a POST request #29

Merged
merged 4 commits into from
Aug 9, 2024

Conversation

DeBuXer
Copy link
Contributor

@DeBuXer DeBuXer commented Aug 8, 2024

The /flushcache endpoint has been added to clear the cache for a specific domain. This will overwrite the cache with no data. The cache will be automatically rebuilt upon the next HTTP request.

You can clear the cache with a POST request, for example, using curl:

curl -X POST http://r.forwarddomain.net/flushcache \
     -H "Content-Type: application/x-www-form-urlencoded" \
     -d "domain=my.example.tld"

The data sent may be up to 10 KB in size, and the input is also validated using an FQDN validator.

src/client.js Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
@willnode willnode merged commit 639eb79 into willnode:main Aug 9, 2024
3 checks passed
@DeBuXer DeBuXer deleted the flush_cache branch September 16, 2024 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants