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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:11:56+00:00 2026-06-13T23:11:56+00:00

when I am debugging to ensure that some files are not cached and therefore

  • 0

when I am debugging to ensure that some files are not cached and therefore reloaded anew each time, I frequently link files with something like

<script src="script/js.js?<?=time()?>"></script>

Is there some way I can do something in css to ensure background images are reloaded every time the page loads without making the style something other than a .css file? (php with css header for example)

#bg_div{
background: url(../images/darrow.png.....)
}

Thanks!

  • 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-13T23:11:56+00:00Added an answer on June 13, 2026 at 11:11 pm

    You could use .htaccess like this:

    <filesMatch "\.(gif|jpg|png)$">
     FileETag None
     <ifModule mod_headers.c>
     Header unset ETag
     Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
     Header set Pragma "no-cache"
     Header set Expires "Mon, 26 Jul 1990 05:00:00 GMT"
     </ifModule>
    </filesMatch>
    

    This prevents all images to be cached. If you put the .htaccess file in a specific folder then images in this folder doesn’t get cached.

    Note that on sites with heavy load cache control should be carefully planned. Using a htaccess directive like this can VASTLY affect page load times.

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

Sidebar

Related Questions

The application could not be launched for debugging. Ensure that the target device screen
when debugging java code, in the stack trace, I noticed that something in the
Occasionally, during development/debugging, I want to ensure that an object is of a certain
Debugging experience http://www.dmhermitage.org/wtfborders.png This is making me want to kill myself. I have some
While debugging and keep pressing F5, if the source code does not exist, eclipse
I'm trying to ensure that visitors of my ASP.NET MVC website always have the
In this question I was looking for a way to ensure that a variable
Something I've been learning (and teaching) in Software Engineering is that code duplication is
I put extensive logging in apps to ease debugging, but I want to ensure
I have a ListBox which is not virtualizing. I am obviously missing something, but

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.