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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:33:18+00:00 2026-06-05T09:33:18+00:00

How do I specify browser caching for images, css, js, etc but ONLY for

  • 0

How do I specify browser caching for images, css, js, etc but ONLY for certain domains? We have our own basic CDN and would like images from subdomains cached separately from images on the primary domian.

  • 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-05T09:33:20+00:00Added an answer on June 5, 2026 at 9:33 am

    You should just be able to add this to an .htaccess in the root of the desired domain/subdomain

    <FilesMatch ".(js|css|gif|jpg|jpeg|png|ico)$">
    Header set Cache-Control "max-age=604800"
    </FilesMatch>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do you specify browser-specific fallbacks for css properties in jquery? E.g. I want
Is there a way to specify certain part of a html file as another
Browsers can resize images based on the attributes you specify. However I imagine most
I'm using a technique similar to Rick Strahls example , but have notcied using
When you specify font sizes in "em" units, the browser calculates the pixel values
I realize that each browser would implement it differently, but are there any references
Is there any way to specify which soft keyboard layout (I need only numbers)
When writing an ASP.NET website, Visual Studio allows me to specify which browser to
does anyone know how to specify the height of a net.rim.device.api.browser.field2.BrowserField? I cannot find
1) a) Even if inside CSS file we don’t specify a margin property for

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.