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

  • Home
  • SEARCH
  • 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 8011439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:00:58+00:00 2026-06-04T19:00:58+00:00

I am using SquishIt for combining my .js and .css files. The problem is

  • 0

I am using “SquishIt” for combining my .js and .css files.
The problem is that the squishit bundle results in a 304 (not changed) when all other resources are 200 (from cache). If I put the files in the regular way I get the wanted 200 result.
An example of my code:

@MvcHtmlString.Create(@Bundle.JavaScript().Add("~/Scripts/Libs/jquery.cookie.js").Add("~/Scripts/Libs/jquery.dynatree.min.js").Add("~/Scripts/Libs/jquery.json-2.3.min.js").Add("~/Scripts/Libs/jsrender.js").Add("~/Scripts/Libs/jstorage.min.js").Add("~/Scripts/Common/utils.js").Add("~/Scripts/DataServices/AccountDataServices.js").Add("~/Scripts/AccountSelection.js").WithMinifier<SquishIt.Framework.Minifiers.JavaScript.MsMinifier>().Render("~/Scripts/AccSelectionscriptBandle_#.js"))

The result:

enter image description here

EDIT:
I am using “Debug=false”;
All other resources are 200 (from cache)

  • 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-04T19:00:59+00:00Added an answer on June 4, 2026 at 7:00 pm

    I believe you are on the right track, but you need to go one step further and add one more option to your clientCache setting (cacheControlCustom=”must-revalidate”):

        <staticContent>
          <!-- A clients cache will expire 90 days after it is loaded -->
          <!-- each static item is revalidated against the server to see if the LastModifiedDate is different than the If-Modified-Since date-->
          <!-- http://msdn.microsoft.com/en-us/library/ms689443.aspx -->
          <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="90.00:00:00" cacheControlCustom="must-revalidate"/>
        </staticContent>
    

    The cacheControlCustom forces a check against the server to compare the lastModifiedDate and the If-Modified-Since of the particular static file. Setting the cacheControlMaxAge will only get you so far, especially when you modify the file on the server, your client may not re-pull the file automatically. The setting you have (500 days) will only pull the file after it has been on the client’s machine for 500 days. If that is your intention, great. (Also, SquishIt will mask some the caching behavior because changing a js/css file within a package, will generate a different hash name.)

    The Url within the comment may explain a little more from MSDN.

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

Sidebar

Related Questions

Using Yii, I want to delete all the rows that are not from today.
I'm trying to combine a couple of javascript files using the SquishIt library. I'm
i am using the visual studio for asp.net and it's create a problem that
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using EF Code First I have an model object that has multiple properties that
Using mercurial, I've run into an odd problem where a line from one committer
using a binary search tree I need to add to a vector all int
Using php/html, I want to retrieve email addresses (plus other information) from MySQL and
Using this code, the following execution yields strange results: C 100 R W The
Using report builder 3.0, I have a report that queries a cube. How do

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.