How images are cached, in mojoportal

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.
4/7/2010 11:14:52 AM
Gravatar
Total Posts 192

How images are cached, in mojoportal

Hi.

as I see all images are cached by default in the browser.

I am just curious how is this done. tried to figure out myself, but couldn't. asking is easier.

does a module or something adds caching headers to images?

4/7/2010 11:30:48 AM
Gravatar
Total Posts 18439

Re: How images are cached, in mojoportal

There is nothing in mojoPortal that controls this, it is possible to configure IIS to control expiration of static files, by default I think IIS allows cache of static files and browsers cache them.

Some related links:

http://technet.microsoft.com/en-us/library/cc770661%28WS.10%29.aspx

http://www.hanselman.com/blog/ForcingAnUpdateOfACachedJavaScriptFileInIIS.aspx

http://madskristensen.net/post/Add-expires-header-for-images.aspx

By default, static files are served directly by IIS without any involvement of ASP.NET 

Hope it helps,

Joe

4/7/2010 1:24:43 PM
Gravatar
Total Posts 192

Re: How images are cached, in mojoportal

oh, yes. you are right.

I used to use this method: http://www.codeproject.com/KB/aspnet/CachingImagesInASPNET.aspx

for caching images. but I was just wondering how you did without passing them through asp.net 

well, seems the host has managed to enable static content caching, and it has just confused me for some time.

that technique can be used in the portal, if the host hasn't static content caching enabled.

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