Add etag support for StaticFile.fromUrl where supported
See original GitHub issueStaticFile.fromUrl
could support etags using the same mechanism as StaticFile.fromFile
presuming the URL provided the following headers:
Last-Modified
Content-Length
While not every URL might provide those, most will. This would add the ability to use etags when loading resources out of the classpath, which is a very common use case.
Discussed on Gitter here: https://gitter.im/http4s/http4s?at=5d682b5606e77851a313b3b0
Will try to see if it can get in 0.20 series. I hope to have a PR up over the next couple days.
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (11 by maintainers)
Top Results From Across the Web
How to configure Wildfly 8.2 to include ETag response header ...
I have implemented workaround with special "resource" servlet serving war resources with ETag header. Servlet extends from FileServlet class implemented in ...
Read more >ETags for REST with Spring - Baeldung
An ETag (entity tag) is an HTTP response header returned by an HTTP/1.1 compliant web server used to determine change in content at...
Read more >Disabling ETag Generation - next.config.js
Next.js will generate etags for every page by default. Learn more about how to disable etag generation here. ... Supported Browsers and Features....
Read more >Which static file types does Nginx generate ETags for by ...
In fact, even when I didn't set etag on; Nginx still decided to send an ETag header for my HTML files, so this...
Read more >Static files in ASP.NET Core | Microsoft Learn
Learn how to serve and secure static files and configure static file hosting middleware behaviors in an ASP.NET Core web app.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@armanbilge I posted a new PR that brings @qwbarch’s work up to date with main over at #6617.
No problem, if you don’t mind leave your PR open and maybe someone can pick it up 😃