question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add etag support for StaticFile.fromUrl where supported

See original GitHub issue

StaticFile.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:open
  • Created 4 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
matthughescommented, Aug 17, 2022

@armanbilge I posted a new PR that brings @qwbarch’s work up to date with main over at #6617.

1reaction
armanbilgecommented, Aug 16, 2022

No problem, if you don’t mind leave your PR open and maybe someone can pick it up 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found