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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:15:11+00:00 2026-06-18T02:15:11+00:00

The clients have a caching problem with most of our resources when we change

  • 0

The clients have a caching problem with most of our resources when we change them because the client’s cache is not invalidated at every release.

Possible solution 1:
Being from .net MVC, I was thinking about making an helper that handle every resources and assign them a version, example:

@SomeHelper.VersionJsFile("~/scripts/somejs1","~/scripts/somejs2","~/scripts/somejs3")

Would output:

<script src="~/scripts/somejs1?v=1234">
<script src="~/scripts/somejs2?v=1234">
...

The problem: I dont know how to do such similar thing in ASP .net.
The problem2: Lots of file and may forget some of them.

Possible solution 2:
The other solution would be to go trough all the files (a lot of files… Actually, a sh*tload of files) and enter the version manually:

<script src="scripts/somejs1.js?v=<%=version %>

The problem: Lots of file and may forget some of them.

Possible solution 3:
Writing a custom filter stream as described in this example: Filter stream example

The problem: Dangerous, if the filter crashes, the client may not be able to use the software at all.
The problem2: Quite “hard” to properly implement since I’m not used to work with streams.
The problem3: Quite “hard” to maintain for future devs.

Possible solution 4:
Use YUIcompression tool. Don’t think about it. This is legacy code and it is too late for that.

My question: What is the best way to version file in such system? If I already found the good solution, do you have tips on how to properly implement the said solution?

  • 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-18T02:15:12+00:00Added an answer on June 18, 2026 at 2:15 am

    I’ve had a lot of luck using Cassette for both bundling and versioning of js resources. It supports webforms, and be used for versioning/cache busting only in the options. It would take a bit of setup of your resources in the configuration, but you would only need to configure it in once place and the pages can just reference their resources when they need it.

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

Sidebar

Related Questions

I have a lot of pre-existing BMPs (and our clients have pre-existing bmps as
I have clients that use our web site (asp.net) that they have to be
I have some clients who are not English speaking. They would like the JavaScript
I have an existing ASP.NET 2.0 web service serves several WinForms clients. In our
I have a trouble with NFS client-side attribute caching. I'm using some servers, one
I have a c# client talking to a cherrypy(http/rest) webservice. The problem is i
We have a gwt-client, which recieves quite a lot of data from our servers.
Basically, the reason I am disabling the cache is because I have DevExpress ASPxGridViews,
I have clients with really bad networks, including bad mappings at the gateways and
I have clients who still using dot matrix for making copies of printed documents

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.