You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if there is no meta-inf/resources files, then Quarkus is using a cache when instantiating the StaticHandler, when using AdditionalStaticResourceBuildItem, we don't necessarily have a meta-inf/resources at buildtime as it's generated.
We discussed it with @cescoffier and here is the proposed solution:
Create a new GeneratedStaticResourceBuildItem(String publicPath, byte[] content), the BuildStep will take care of:
Creating the GeneratedResourceBuildItem and NativeImageResourceBuildItem
Creating the route handler:
dev: implement a new classpath static handler without cache (or FS if we see there are problems) with support for http compression, head and options requests...
prod: instantiate a vert.x static handler (they are in the generated resources so it's fine)
Describe the bug
Currently, if there is no
meta-inf/resources
files, then Quarkus is using a cache when instantiating the StaticHandler, when using AdditionalStaticResourceBuildItem, we don't necessarily have ameta-inf/resources
at buildtime as it's generated.This leads to caching issue as described here:
quarkiverse/quarkus-web-bundler#171
Expected behavior
Files added with
AdditionalStaticResourceBuildItem
shouldn't be cached in dev-mode.The solution might be to split in to handers:
AdditionalStaticResourceBuildItem
) on which cache is disabled in dev modeThe text was updated successfully, but these errors were encountered: