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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:13:33+00:00 2026-05-25T06:13:33+00:00

Which combination of http headers can achieve the following? I would like static content

  • 0

Which combination of http headers can achieve the following?

I would like static content like images to be cached for as long as possible, but if those images change on the server, I would like the browsers to update them.

  • 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-05-25T06:13:34+00:00Added an answer on May 25, 2026 at 6:13 am

    A very neat caching approach of static content is to encode version of your static content inside URL. Then “notifiying” browser to download new static content is just a matter of supplying new URLs to the client.

    
    # first version access (1.1/main.css will never expire)
    # e.g. by far future Cache-Control + Expires Header
    <link ... href="/static/1.1/main.css
    
    # after upgrading/releasing trigger fresh download
    <link ... href="/static/1.2/main.css
    
    

    It involves some effort to your build+deploy process but from caching control it is the very simple.

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

Sidebar

Related Questions

I have the following task, which because of the combination of DestinationFiles and DestionationFolder
I have the following PHP code which works out the possible combinations from a
Which of the following has the best performance? I have seen method two implemented
Which C#/.NET Dependency Injection frameworks are worth looking into? And what can you say
I've started to add HTTP support to a custom C# non-webserver application which seems
I am starting to set up a personal website, and I would like it's
I'm currently using a modified HTTP::Daemon::Threaded server in combination with SOAP::WSDL and Pod::WSDL to
I have been trying to determine which combination of packages to use for a
I can't seem to get the magic combination of enabling NTLM authentication and still
http://developer.android.com/reference/android/widget/TextView.html#attr_android:password I can't find where in the android code it applied the android:password xml

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.