scriptsVersion and cssVersion

Sep 22, 2008 at 9:20 AM
Hi, why there is this properties?
I don't want change web.config everytime when I update css/jscript.

And If this version is needed, can it be determined from file lastmodified date(s)?

Thank you

Coordinator
Sep 22, 2008 at 12:00 PM
@PetrSnobelt,
This parameter is to force the clients cache to be refresh.
To improve performance (that what it is all about, no?) the code tells the client (the user browser) to cache those files, and don't even bother to check every time for newer version.
So, to force the all the clients to refresh their static content is by changing the querystring.
Feel free to change the code for your own needed.
Sep 23, 2008 at 6:40 AM
Hi, thanks for your reply,

But if client has cached version and version in web.config is changed,
how browser detects new version exists?
(I'm not using automode)

Thank you
Petr

2008/9/22 Miron <notifications@codeplex.com>:
> From: Miron
>
> @PetrSnobelt,
> This parameter is to force the clients cache to be refresh.
> To improve performance (that what it is all about, no?) the code tells the
> client (the user browser) to cache those files, and don't even bother to
> check every time for newer version.
> So, to force the all the clients to refresh their static content is by
> changing the querystring.
> Feel free to change the code for your own needed.
>
> Read the full discussion online.
>
> To add a post to this discussion, reply to this email
> ([email removed])
>
> To start a new discussion for this project, email
> [email removed]
>
> You are receiving this email because you subscribed to this discussion on
> CodePlex. You can unsubscribe on codePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any posts
> to this discussion will also be available online at codeplex.com
Coordinator
Sep 23, 2008 at 12:04 PM
If you are not using 'AutoMode' the client can't know.
You will have to append manually some kind of 'id' to the script/css url to force the client update it's cache.
Also, you can play with the source code and change the way the content is being cached.