Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8882317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:32:53+00:00 2026-06-14T20:32:53+00:00

Using any of the OutputCacheProfiles given below <caching> <outputCacheSettings> <outputCacheProfiles> <clear/> <add name=CachingProfileParamEmpty duration=87

  • 0

Using any of the OutputCacheProfiles given below

<caching>
  <outputCacheSettings>
    <outputCacheProfiles>
      <clear/>

      <add
        name="CachingProfileParamEmpty"
        duration="87"
        varyByParam=""
        location="Any"
      />

      <add
        name="CachingProfileParamNone"
        duration="87"
        varyByParam="None"
        location="Any"
      />

      <add
        name="CachingProfileParamStar"
        duration="87"
        varyByParam="*"
        location="Any"
      />
    </outputCacheProfiles>
  </outputCacheSettings>
</caching>

header Vary:* is always sent

HTTP/1.1 200 OK
Server: ASP.NET Development Server/10.0.0.0
Date: Mon, 05 Mar 2012 20:11:52 GMT
X-AspNetMvc-Version: 3.0
Cache-Control: public, max-age=87
Expires: Mon, 05 Mar 2012 20:13:13 GMT
Last-Modified: Mon, 05 Mar 2012 20:11:46 GMT
Vary: *
Content-Type: text/html; charset=utf-8
Content-Length: 5368
Connection: Close

which in turn causes the browser to send the request to the server and not cache locally. Even using

this.Response.Cache.SetOmitVaryStar(false);

doesn’t help. The only way I can force the header not to be sent is to use direct attribute

[OutputCache(Duration = 60, VaryByParam = "", Location = OutputCacheLocation.Any)]
public ActionResult Index()

What am I doing wrong? I would prefer to use the CacheProfiles as those can be modified in the web.config.

The headers posted here are from the Cassini (Server: ASP.NET Development Server/10.0.0.0) but I have seen identical results in IIS 7 on Windows 2008 as well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:32:54+00:00Added an answer on June 14, 2026 at 8:32 pm

    It may be a bit late for amit_g, but for anyone else looking for an answer, you can specify an application-wide output cache setting in the config to remove the Vary.* response header.

    <caching>
      <outputCache omitVaryStar="true" />
      <outputCacheSettings>
        <outputCacheProfiles>
           ...
        </outputCacheProfiles>
      </outputCacheSettings>
    </caching>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The below program calculates 2 raised to the power n without using any loop,runtime
Is it possible to add two numbers without using any arithmetic or logical operators?
I try not to using any xml. <bean id=restTemplate class=org.springframework.web.client.RestTemplate> <property name=messageConverters> <list> <bean
Without using any other jquery plugin I'm looking to continuously flash/change a div's border
Can I read an excel file without using any module? I tried like just
Okay so I'm not using any session variables, rather my code looks like this:
I don't believe that I am using any 3.0 specific APIs, but somehow whenever
I have compiled a .NET application using Any CPU option. This .NET application uses
how to swap two numbers inplace without using any additional space?
How to check visited link using jquery without using any plugin please help to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.