Making jquery and yahoo ui cacheable

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/5/2009 8:11:52 AM
Gravatar
Total Posts 9

Making jquery and yahoo ui cacheable

Hi

It is possible to speed up loading of jquery/yahoo UI javascripts? Perhaps using browser cache?

 

12/6/2009 8:30:27 AM
Gravatar
Total Posts 18439

Re: Making jquery and yahoo ui cacheable

Those files will be cached by the browser without you having to do anything. 

Best,

Joe

12/6/2009 9:14:52 AM
Gravatar
Total Posts 9

Re: Making jquery and yahoo ui cacheable

Hi Joe,

I'm no expert in browser cache, but when I use Google page speed to analyse performance issue, it seems that the cache-expiry is not set for js resources, it may not be cached by browsers.

 

 

12/6/2009 9:24:08 AM
Gravatar
Total Posts 18439

Re: Making jquery and yahoo ui cacheable

If you are hosting the jquery and yui files locally you can set expiration on them using IIS. If you are using the google cdn to serve the files (this is done by default) then you have no control over it but they do get cached.

It is not something I can build into the static files, it can only be managed by the web server.

If you use Firebug plugin you can watch the network requests and you will see that it does not retrieve the jquery or yui files over and over even though page speed plugin or YSlow plugin may notice that they do not have expiry set on them, browsers still do cache them.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.