Add A `DeleteFile` and `Refresh` method to the interface.
Note: New issues raised, where it is clear the submitter has not read the issue template, are likely to be closed with "please read the issue template". Please don't take offense at this. It is simply a time management decision. If someone raises an issue, and can't be bothered to spend the time to read the issue template, then the project maintainers should not be expected to spend the time to read the submitted issue. Often too much time is spent going back and forth in issue comments asking for information that is outlined in the issue template.
If you are certain the feature will be accepted, it is better to raise a Pull Request (PR).
If you are uncertain if the feature will be accepted, outline the proposal below to confirm it is viable, prior to raising a PR that implements the feature.
Note that even if the feature is a good idea and viable, it may not be accepted since the ongoing effort in maintaining the feature may outweigh the benefit it delivers.
Is the feature request related to a problem
The feature request is not a real big problem, but it would be nice to refresh the cachce programmatically, and clean up the stale files. From what I've seen the stale file are being stored and not cleaned up.
Describe the solution
Add a public DeleteFile and Refresh methods to the IHttpCache interface.
Describe alternatives considered
I have not tried this but I could potentially update the endpoint that is being refreshed manually as shown in the documentation.
Additional context
None.