Caching of AJAX script files

I added the HTTP header value ETag to my scripts that they can be cached on the client. This will fasten up initial loading of the complete page if the scripts are not changed, what is the default on running systems. I think this feature was missing in the old library, all the client-side stuff was sent to the client.

Do you want to see what Ajax.NET Professional is sending from and to the server? Use the Fiddler HTTP Debugger, one of my favorite tools developing web sites.

1 Comment

  • Michael Schwarz said

    @Julien: I cannot use the Expire header because the script must be refreshed if there is a new Ajax.NET method. If you use the ETag a very small HTTP request is done to check if the file has been changed. This is done by I think all files that are served direct with the IIS (like *.js, *.gif,...).

    CIAO
    Michael

Comments have been disabled for this content.