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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:17:48+00:00 2026-06-16T03:17:48+00:00

In order to refresh a CSS file in cache, I often use the file.css?version=DDMMYYYY

  • 0

In order to refresh a CSS file in cache, I often use the file.css?version=DDMMYYYY trick.
However, I have a question about this method.

I’m working on an old extranet.
All pages are using the same CSS file.
The extranet doesn’t have any template file and this css is included in every page of the extranet.
I need to refresh this css file for all the extranet pages.

My question is :
I want to use the file.css?version=DDMMYYYY trick on the login page.
The other pages will still include file.css (without the ?version part)

If the user come on the login page, he will receive the new version of the css file.
But which version will be used on the other pages? The old version (file.css) or the new version (file.css?version=DDMMYYYY) ?

In other words, when the user come on the login page, which files will be in his cache :

  • file.css and file.css?version=DDMMYYYY
  • only file.css, updated to the new version

I’m sorry for this beginner question but I have some difficulties to test it myself.

Thanks for your help!

  • 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-16T03:17:50+00:00Added an answer on June 16, 2026 at 3:17 am

    When the file gets cached, it will be with the full url including the ? and stuff after it. The caching headers are supplied by the server and obeyed by the browser.

    Essentially

    file.css?version=DDMMYYYY
    and
    file.css

    Are 2 separate files for the browser, with no connection what so ever.

    My suggestion to you would be to use the new url consistently on all pages.

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

Sidebar

Related Questions

I'm checking whether a file has been modified or not in order to refresh
Below I have a nested if statement which loads a certain CSS file depending
I'm using a specific API, that requires refresh a token in order to use
Order deny,allow deny from all allow from xx.xx.x.xx RewriteRule . - [F] I have
in order to recover data from server I use XMLHttpRequest and my code is
In order to achieve spriting by compass according to the documentation I wrote this:
in order to avoid copy/paste, i can use a unique view for different actions,
In order to set some varaibles i need the information if a given file
How should I properly restart the ASP.NET (IIS 5.1) server in order to refresh
This may be a problem that others have had before, but I've not been

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.