T
Tomasz J
Hello developers,
My custom control allows for specifying paths to images it uses.
In those paths I want to be able to use the "~" app root operator, so my app
works correctly with virtual paths.
So, rendering the control I have to convert the "~" app-rooted paths to a
website-rooted paths using WebControl.ResolveUrl() or a similar method.
And here is the problem:
If cookieless sessions are used, paths resolved in such way include session
ids, like (S(prfybe55sw30b155y4w22pfp) as a part of the client-visible path.
As a result client browser is unable to effectively cache images - every
time new session is created images are being downloaded over and over
again - because their observed paths change.
I think the best solution is to convert the "~" app-rooted path to a
website-rooted path, but without the session id part. Are there any
simple/standard solutions, besides resorting to Regex?
Thanks for any hints and/or comments,
Tomasz
My custom control allows for specifying paths to images it uses.
In those paths I want to be able to use the "~" app root operator, so my app
works correctly with virtual paths.
So, rendering the control I have to convert the "~" app-rooted paths to a
website-rooted paths using WebControl.ResolveUrl() or a similar method.
And here is the problem:
If cookieless sessions are used, paths resolved in such way include session
ids, like (S(prfybe55sw30b155y4w22pfp) as a part of the client-visible path.
As a result client browser is unable to effectively cache images - every
time new session is created images are being downloaded over and over
again - because their observed paths change.
I think the best solution is to convert the "~" app-rooted path to a
website-rooted path, but without the session id part. Are there any
simple/standard solutions, besides resorting to Regex?
Thanks for any hints and/or comments,
Tomasz