Output caching on iis 7 Asp.net

how i can enable output caching on my server 2008 for my asp.net application
i read many articles about the caching on iis 7 but when i test it it seems it doesnt got enabled
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ted BouskillSenior Software DeveloperCommented:
What tests are you using to determine it's not working?  Caching won't help all web applications.  How you write your application has a tremendous impact on whether or not caching will help.
kamal_2002Author Commented:
i run a test using this site

and it shows me that caching is not working
my site is asp.net 3.5
i need to enable caching to improve the response,speed of my site
if their is any advances to increase the speed i will appreciate it
Ted BouskillSenior Software DeveloperCommented:
With the information you've given me I cannot help.
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

kamal_2002Author Commented:
im trying to increase the performance and speed of my website by enabling caching
im using Asp.net 3.5 ,Ajax , SQl 2005
im trying to increase the loading time of my site

one of the recommended setting is to enable output caching on iis 7

my server is windows 2008

so can you help me how to enable it and if their is any thing i can use to increase the speed of my site
Ted BouskillSenior Software DeveloperCommented:
I wouldn't trust a site like that to determine where your site is slow.

Setting the output cache is achieved using a Page directive in ASP.NET (not IIS)

However, AJAX and SQL 2005 could be slowing your site tremendously.  There are a lot of things that can prevent pages from loading quickly and even the browser can have an effect.  The Javascript engine in Chrome and Opera is about 40 times faster than IE 8.  If your page has a lot of Javascript IE could be the problem.

You are simply telling me the technology you've used.  I need to know how you've implemented it.  Are all the pages slow?  How long to they take to load?  Are the slowest pages the ones with lots of SQL connections?
kamal_2002Author Commented:
Loading time is about 13 sec
my site is http://www.jo-auto.com
my server specification is Quad core Processor 2.83 and 4 GB or ran
im using ajax version 1.0.20229.0

most of my website is images based , and also i have resize their size

also in windows server 2008 ,iis 7 their is a feature for enabling output caching
Ted BouskillSenior Software DeveloperCommented:
OK, using YSlow installed with Firefox your site received poor grades.  I'd strongly recommend you try it to review your site and start making changes.

Your site is using ASP.NET and it will override settings in IIS 7.  If you want to precisely control your ASPX pages you need to do it using Page directives.

Your site is very complex and there could be a lot of bottlenecks and I'm not sure Output Caching will fix all of them.  First run Firefox with the YSlow plug-in to analyze your site and implement as many recommendations as you can.

Then I'd recommend you run the SQL profiler to analyze your queries.   Sites like www.sql-server-performance.com have lots of great tips for analyzing your SQL database.

I notice your page is VERY large.  Nearly 1MB.  Considering some sites I've built are required to stay under 80K you are nearly 14 times larger than I've been allowed on some applications.
kamal_2002Author Commented:
hi Sage
Thank u for your reply
My site is mainly for selling cars , so it is image based and due to that the size is very large about 1 MB
is their any method or technique your recommend me to do to reduce the page size or speed the performance
Ted BouskillSenior Software DeveloperCommented:
It looks like you could optimize the images more.  I checked with a tool called SmushIt that is available with YSlow and you could save about 10% on that alone.

Your Javascript is huge.  181K and you aren't letting the browser cache the Javascript because you are using the 'Expires' header on them.  Once again, please use the recommendations in YSlow.  Have you even tried it?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kamal_2002Author Commented:
yes tedbilly , i have tried yslow and now im following it
thanks alot for your help
kamal_2002Author Commented:
i will use the tool SmushIt  also yslow for making better designing
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.