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 8188605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:58:14+00:00 2026-06-07T02:58:14+00:00

I inspected our web application with the Audit feature in the Google Chrome developer

  • 0

I inspected our web application with the Audit feature in the Google Chrome developer tools.

First I got a warning, indicating that we are serving our static content none-cacheable: “The following resources are explicitly non-cacheable. Consider making the cacheable if possible”.

To fix this I added this snippet to our web-config

<staticContent>
    <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
</staticContent>

as recommended in this blog post:
http://blogs.msdn.com/b/carlosag/archive/2009/06/09/are-you-caching-your-images-and-scripts-iis-seo-can-tell-you.aspx

If I now start a new audit in google chrome, I get a new warning:

The following publicly cacheable resources contain a Set-Cookie
header. This security vulnerability can cause cookies to be shared by
multiple users.

Can you explain the potential security threat and what is a possible solution in Asp.net?

[Update]

After some more research, I guess this could be related to this question:

Why is ASP.NET forms authentication setting cookies on a static image request?

But I can’t put the puzzle together. The situation is not exactly the same, while our application could be configured to use forms authentication, I got the warning while using windows authentication.

  • 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-07T02:58:16+00:00Added an answer on June 7, 2026 at 2:58 am

    It looks like the problem was really related to forms authentication. After authenticating the user we set a forms authentication coockie. This coockie has no path set, so it will be sent for every request, even for static images.

    It looks like I still had the coockie set from a previous debug session even though I was testing windows authentication.

    I think the best solution would be to set a path for the coockie to prevent it from being sent for static resources. Unfortunately I can not define a path for all our service requests, because we are using WCF Ria Services and the services have a virtual path created a runtime.

    The solution for now is set the coockie only in the browser. The updated entry in the web config is:

    <staticContent>
        <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" cacheControlCustom="private"/>
    </staticContent>
    

    The important part is the new cacheControlCustom attribute.

    I guess this could still be a security problem, if a browser is shared by more than one user (e.g. in an Internet cafe?), but this is not a valid scenario for our project.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Web application storing images in database. In our first setup we were storing (and
I've got an app that displays information from our web service. The user has
I implemented 6 months ago in our web application site(Asp.Net) a page where you
Background Information: I'm part of a team of developers that runs a web application
We've having trouble deploying a web service that works in our development environment, but
We have an application that reconstructs external web sites in an Iframe from within
I've got a web application, one of whose functions is which is constantly appending
I've got a web app that I deploy to several applications like so- https://customerinternaldomain.com/thewebapp
I'm refurbishing a simple web-app that our field techs use. One of my goals
I've had a problem with our web application, since Wednesday. I've been trying 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.