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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:10:46+00:00 2026-06-09T12:10:46+00:00

I am reading about HHT caching, found a website article here which explains some

  • 0

I am reading about HHT caching, found a website article here which explains some things but I still don’t get it since I am a total newb and its the first time I have heard of this.

First of all, using firebug I have noticed that I have some elements which rarely change like:
1. sites logo;
2. sites css;
3. sites jquery;
4. about 4 images which are used for styling.

I found this code:

ExpiresActive On
ExpiresDefault A0


# 1 YEAR - doesn't change often
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">
ExpiresDefault A29030400
</FilesMatch>

# 1 WEEK - possible to be changed, unlikely
<FilesMatch "\.(jpg|jpeg|png|gif|swf)$">
ExpiresDefault A604800
</FilesMatch>

# 3 HOUR - core content, changes quickly
<FilesMatch "\.(txt|xml|js|css)$">
ExpiresDefault A10800
</FilesMatch>

But:

  1. I don’t know where to put it.
    I’m not sure I can modify my htaccess because I have wordpress which rewrites everything.
    Where does this code go?

  2. Is there a code I can put in the sites header, maybe php?

  3. While I have css, js, jpg elements that do not change, I have others that do change, sometimes every 5 minutes because of a cronjob. The code above dictates the files by gender. I need a way to specify the exact files which need caching.

Please 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-09T12:10:47+00:00Added an answer on June 9, 2026 at 12:10 pm

    What you see there is configuration code for the apache conf.
    You could very specifically set the caching meta information there. The approach to set this information by file extentsion is a good start.

    However, you might want to have a look here:
    How to set HTTP headers (for cache-control)?

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

Sidebar

Related Questions

Been reading about map/reduce here and on other sites and I'm still not sure
Reading about Delphi's Exit statement (see here for instance), I cannot ignore that writing
While reading about constant interface antipattern, i found final constant class with no instances
while reading about cookies i found difficulty to grasp the following statement setcookie() must
After reading about Enitity Framework , i have some questions: 1] What is the
Cursory reading about both tools leads me to believe they do similar things: manage
After reading about CORS (Cross-Origin Resource Sharing), I don't understand how it improves security.
I am reading about HibernateTemplate class in Spring3. Here i saw two methods update
I recall reading about a broadcast receiver interface from the sync adapter or some
Reading about the G.729 codec , I found this interesting tidbit about Comfort Noise

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.