Configuration :: Can Cache Images In A Web Application To Speed Things Up

May 26, 2010

I would like to set cache- control on a folder of images in a web application . In that way i can cache the images and the web pages will load a lot quicker . I can specify this in IIS by putting a ISAPI extension , but how can i do the same thing in asp.net application, ie create that setting in IIS when the application first starts up .

View 2 Replies


Similar Messages:

HttpHandlers / Modules :: Cache Images - Page Takes To Long Due To Images Not Caching?

Mar 31, 2010

I've been trying to get image caching working for the last 8 hours and I keep the same problem time and time again, I'm trying to cache Images at the moment and then when thats succesful, apply this to cache my js and css files. I have at the moment Sql Dependancy caching working on my dynamic pages but the page still takes to long due to images not caching.

What I have tried is going to IIS7 Management and adding HTTP Response Header for the images folder and setting various things for the cache control.i dont care how long it caches it on the client or on the proxy servers i just would like it to check when the file was modified and compare it with the one in the client or proxy cache and if they are different then fetch the new image which has been ftp up. i could solve this by changing the image name but the thing is the image name is generated when they are ftp'd to the site by an application and the name is a direct reference to the product so i cant change the name each time, as it would mean making a lot of otherpages accross the board.

so What i would like, is to set and expiry date of lets say 32 days or more on the images and then check to see if they have changed by date modified or some other way of checking(Etags maybe) I'm not sure, if they have changed on the server then redownload and recache them, I tried using post-check and pre-check together but that just permantly cached them, so when i change the image the only way it would display the new image is to just hit F5.

In Brief, how can i Cache images, on the client machine/ proxy cache and recache them when the modified date of the file has changed.

View 4 Replies

Mobiles :: Speed Up Images Downloading?

May 24, 2010

I am using mobile controls.....& developed a wap site but images are really very slow ..makes a bad impression.

speed up of downloading of images fast.

View 2 Replies

Images / Thumbnails - Improve Download Speed?

Jun 15, 2010

I have a website that enable the user to upload pics to server (uploaded pics sizes are 300x400 and approximately 270kb). In my app. I am having another page that lists the pics and I am using there an image control for that purpose. The Image control sizes are 80px width, 60px height. My question is how can I improve the download speed by minimizing the images ? Do I have to create a thumbnail for each picture the user upload?

View 4 Replies

Configuration :: Images Not Visible After Publishing Web Application?

Nov 18, 2010

i have built a webapplication using VS08 and IIS 5.1

then i published it to IIS but now i have noticed that the images the application has are not visible.

also the Javascript that i have added are not being added.

this was not the case when i was developing the application.

i was sure that i was path problem but i changed it <img alt="Loading" src="images/progress.gif" />

still the image is not being shown.

also if i try to browse the path http://localhost/MyApplication/images/progress.gif then i see this message

You are not authorized to view this page

View 4 Replies

Forms Data Controls :: Increase The Speed Of Loading Images In Repaetercontrol?

Aug 2, 2010

I am facing problem with images loading time. In my form I have image server control placed in repeater control. The repeater control every time binds atleast 300 images. When we want to see all the images at a time the page is taking lot of time(atleast 3 to 4 mins) to display. But I need the page should be loaded fast.

The image url is from physical location.And the information related to image is coming from database.

I am using .net framework 3.5 and C#.net as language in asp.net web application.

View 3 Replies

C# - Web Application Cache Versus Database Cache

Jan 14, 2010

Im building a image gallery which reads file from disk, create thumbnails on the fly and present them to the user. This works good, except the processing takes a bit time.

I then decided to cache the processed images using the ASP .NET Application Cache. When a image is processed I add the byte[] stream to the cache. As far as I know this is beeing saved into the system memory. And this is working perfect, the loading of the page is much faster.

My question is if there are thousands of images which gets cached in the Application Cache, will that affect the server performance in any way?

View 3 Replies

IIS Configuration :: How To Limit Download Speed For Every IP

Dec 23, 2015

I have website that users can download some film from this website I want define speed for every IP that each IP can download just with 200KB... How I can do it?

View 1 Replies

How To Speed Up Web Application?

Dec 4, 2010

I am writing an 3-tier enterprise asp.net web application which needs to be very lightweigt to lower the bandwidth usage. I want to speed up ASP.NET web page loading, I have minified all js and css, used AJAX, used less images in page, used paging for grids but still the overall response page size goes to nearly 1Mb because of viewstate hidden fields.

View 6 Replies

Configuration :: Connection Speed To Database Server?

Feb 9, 2011

My web server and database server are currently both in the same room. However, the web server might be changed to a different server in another building about a mile down the street. I want to make sure this doesn't have a negative impact on the connection speed between the database and web server. Is there a way to test the connection speed from both web servers to the database?

View 3 Replies

How To Measure Speed Of Application

Sep 13, 2010

Is there a way to measure the time elapsed for a web page to execute?

And if so, is it safe to use that figure to estimate the speed of the web page as the number of users grow and the database grows. Ie: if the page currently takes 1 second to process through x amount of rows in the database, to estimate it would take 2 seconds with 2x rows?

View 2 Replies

Speed Up Web Forms Application With 3.5 Url Routing?

Jul 6, 2010

I started using url routing for my web application. It's a dynamic website and it has more than 50k pages. It looks like now it works slower. how to optimize it, to improve it and make it more efficient?

View 1 Replies

Asking Browsers To Cache Our Images (IIS)

Jun 10, 2010

I just ran Google's Page Speed application against our site and one of the recommendations was to Leverage browser caching. Expanding this revealed the following:

The following cacheable resources have
a short freshness lifetime:
Specify an expiration at least one week in
the future for the following resources:
<a long list of images >
<some javascript files >

How do I go about lengthening the "freshness lifetime" of particular images?

It's an ASP.NET project running on IIS7.5

View 2 Replies

Configuration :: Slow Initial Page Load Speed And Compile Settings

Dec 8, 2010

Over the last week I've been investigating an issue for one of our clients whereby the initial page load following a deployment of their website takes around 1 minute, resulting in unacceptable downtime for end users. This was happening not only for code deplyments (bin dll's and .config files) but also if there were large numbers of .aspx pages updated. For code deployments it's not an issue, but for aspx updates it is; in this particular scenario, we are making use of a 3rd party content management system (RedDot from OpenText) in which every page of the site is published out as a distinct .aspx page. This means that for this website there's somewhere in the region of 2,400 separate .aspx pages. I realise this isn't an ideal situation but we're working within the constraints of the CMS, and we managed to correlate the instances where the site was unresponsive with App pool restarts, which also corresponded to publications of of .aspx pages.

I found an article by Tess Ferandez [URL] which describes all the reasons why the app pool may restart, and it does seem that if more than 15 .aspx pages are changed then the app pool will recycle and the pages will be re-compiled. Another msdn article [URL] then gave me a few pointers on how to start addressing this problem, and for the moment I've set a flag on the compilation options to prevent batch compilation:

<compilation batch="false">

This means that the initial page load now takes around 6 seconds instead of 1 minute, which is a great improvement. However, I also used the "Compilations Total" performance counter to investigate the number of pages that have been compiled by ASP.NET for my site and was quite surprised that the total number of pages that get compiled peaks at 44, which is odd given that there are 2,400 aspx pages in the site. If the batch flag is set to false, the counter slowly increments by 1 page at a time as you click around on the site; if batch mode is true, the initial compilation takes the number straight to 44 over the course of ~60 seconds. What I'm really struggling to understand is why all 2,400 pages aren't compiled. Does anyone have any inside info on what might be going on as all the documentation I've read seems to indicate that all of the pages should be compiled and this counter should be much higher.

View 1 Replies

C# - Loading Items In Order And Increasing Web Application Speed Using Ajax

Jul 21, 2010

I want to implement the following page by Asp.net version 4.0 and ajax but I want to have loading by order like loading item 1 and 2 and so on. I have container or web part but mostly container like simple asp.net panel. how I can implement it ? I used updatepanel and update progress but it doesn't work that I have expected before.

View 3 Replies

Web Forms :: 2008 - Upload Images To Server (application / Images Folder) And Retrieve (display)

Apr 17, 2010

how to upload images to server(application/images folder) and retrive(display) from and on client PC for asp.net. its just for uplaoding logo directly to server folder and retriving from server to client. i am not getting server path on client pc for image.

View 5 Replies

How To Force Client Browser To Download Images From Server Rather Using Its Cache

May 20, 2010

Assume a simple aspx data entry page in which admin user can upload an image as well as some other data. They are stored in database and the next time admin visits that page to edit record, image data fetched and a preview generated and saved to disk (using GDI+) and the preview is shown in an image control.

This procedure works fine for the first time however if the image changes (a new one uploaded) the next time the page is surfed it shows previously uploaded image. I debugged the application and everything works correct. The new image data is in database and new preview is stored in Temp location however the page shows previous one. If I refresh the page it shows the new image preview. I should mention that preview is always saved to disk with one name (id of each record as the name).

I think that is because of IE and other browsers use client cache instead of loading images each time a page is surfed. I wonder if there is a way to force the client browser to refresh itself so the newly uploaded image is shown without user intervention.

View 2 Replies

.net - Get Cache In KB Used For This Application?

Jun 10, 2010

I need to know what is Cache size. I've read solution on this site for more or less similar question but it partly serves me. As i know i can get values from PerMon, here is function

public static string getCacheSize()
{
PerformanceCounter pc = new PerformanceCounter("ASP.NET Applications", "Cache % Machine Memory Limit Used","__TOTAL__", true);
return string.Format("{0:0.00}%", pc.NextValue());
}

1.it gives me percents when i need KB and there is no item closest to this one in PerfMon
2.it shows 70.5% used while all memory usage is about 50%

View 1 Replies

Configuration And Views / How To Cache An Object Of AppConfiguration

May 31, 2010

I've been developing an application using asp.net MVC, and I have some configurations that influences in process of render a view. For example, a user can choose (in an configuration of system) if a field should appear for a management of records in an area of the system. So, I have an class called AppConfiguration has some properties to represent this configurations.

I guess I need to cache an object of AppConfiguration, and make a ViewModel base class and inherits from my viewmodel, for example:

public class BaseViewModel {
public AppConfiguration Config { get; set; }
}
public class DocumentViewModel : BaseViewModel {
public Document Document { get; set; }
}

and make typed views using "DocumentViewModel" to check the properties if this kind of document is able to render or not ? is it works ? Or is there any other better way to do something like this ?

View 1 Replies

Configuration :: Manintenance Page - Browser Cache?

Apr 19, 2010

As part of the deployment, we need to have a maintenance page displayed for our web site. The issue we are experiencing is that when the maintenance page is active and ISA rule is configured to redirect to the maintenance page. We see the following behavior:

The user is not displayed the maintenance page, but is displayed a splash page with the English and French buttons. Click on any button displayed a 404 error regarding the URL / File not found. After clearing the local cache and reloading the browser, the maintenance page is displayed successfully.

The same behavior is noticed one we have disabled the ISA rule for the maintenance page and re-enabled the ISA rule for the the Website. The user is presented with the 404 error and once the cache is deleted, the user can see the Website.The issue is a cause by browser retrieving the website pages from the cache and not directly from the webserver.

View 1 Replies

Is It Possible To Manipulate An .net Web Application Cache From Outside The Web

Feb 12, 2010

have a situation very similar to the one in this question:http://stackoverflow.com/questions/774695/selective-cache-clearing-across-load-balanced-servers-asp-netThe difference is that due to our hosting configuration, I am unable to address individual servers by IP address. Assuming I cannot access specific servers via web requests, is it possible to access the HttpContext of a web application running on the same machine? I'm thinking I could accomplish this with a windows service that I could address by machine name, or alternately a console application

View 1 Replies

What's The Diff Between Cache And Application

Apr 12, 2010

I just noticed a "Cache" object, when would you use the Cache object to store state data nd when would you use the Application object?

View 1 Replies

IIS7: Set "no-cache" For All Aspx Pages But Not Images/css/js

Jan 7, 2010

I would like to not cache my aspx pages anywhere. For some reason IE ignores meta tags which are set from my master page

<meta http-equiv="Expires" CONTENT="0">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">

I am trying to see if I can set my Http response header to "Cache-Control" - "no-cache". Setting something like

HttpContext.Current.Response.Headers.Add("Cache-Control", "no-cache");
HttpContext.Current.Response.Headers.Add("Exipres", DateTime.Now.AddDays(-1).ToShortDateString());

in every page would be painful. I am thinking if there is anyway we can set this in IIS7 (add this header to aspx pages, but not images/css/js). Is it possible ?

[URL]

View 3 Replies

Share Cache Between Web Service And Web Application?

Mar 19, 2010

I would like to create a web application that gives an overview of all latests builds of a Team Foundation Server (TFS). The original idea was to simply query the TFS for all these builds and display the results using html. Now the problem is that this is just too slow. It takes around a minute to get the required informtion. I can't inluence this, it is just given. So I came up with the idea of caching. I could cache all results for a certain period of time and then invalidate the cache but as soon as the cache expires someone that uses the application will have to wait again which is not that nice.

The Team Foundation Server is able to notify whenever a new build is available. So basically the idea is that the application could react on that notification. In order to be notified I have to write a web service and register it with the TFS. That worked pretty well so far. The web service is now notified whenever a new build is done. Now I would like to connect my web application to the web service and whenever the web service is notified by the TFS update the cache of the web application. Here starts the problem. How can this be achieved? First I thought that the web service could fire a .NET event and the web application could react on that event but that does not seem to be possible. The next idea was that both the web service and the web application could use the same cache. The web service could then directly update the cache with the build information it receives from the Team Foundation Server but I am not even sure if this works.

Can a web service and a web application share the same cache? The web service doing something like Cache.Add("key", buildInfo) and the web application buildInfo = Cache["key"]. If not what other approach could be used to solve such a scenario?

View 4 Replies

Application Versus Session / Cache

Feb 23, 2011

What is an appropriate use case for all of the above? It seems session and cache are quite similar, and I can't think of much use for application.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved