Hi! Since you are using an image component with a component-local resource, this will always require the page to be versioned. The url that is generated for the image will be page-specific, to be able to let the image component call the byte array resource.
If you wish to keep the page stateless, you’ll need to use a mounted resource for this. You can create a mounted resource that gets the active user from the session (or return a 404 when the user is not logged in); Or you can build a stateless version which has some unique user identifier in the url. // Bas Verstuurd vanaf mijn iPhone > Op 4 aug 2024 om 12:52 heeft Stéphane V <sva...@gmail.com> het volgende > geschreven: > > Hi, > > I'm using a NonCachingImage for the avatar image of my users. I was expecting > the page will not be versioned, but it's versioned. > > I'm using this code: > > new NonCachingImage("avatar", new ByteArrayResource("image/png", > getUserAvatar(userProfile))) > > How can I avoid to version the page ? > > Thank you. > > Stef --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org