Programmatically implement <%@ OutputCache Duration="86400" VaryByParam= "None" %>

Posted on 2004-11-29
Last Modified: 2009-12-16
Hi Experts,

I need to set <%@ OutputCache Duration="86400" VaryByParam= "None" %> in my webpage programmatically.

Thanks in advance for helping me to solve my problem.
Question by:noulouk
    LVL 21

    Expert Comment

    U can try using. I havent implemented this though

    Response.AddHeader("OutputCache Duration", "86400");
    Response.AddHeader("VaryByParam", "None");
    LVL 7

    Accepted Solution

    This should answer your question:

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now