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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:04:30+00:00 2026-06-01T15:04:30+00:00

I am developing a website which is extensively using jquery dom javascript ajax etc.

  • 0

I am developing a website which is extensively using jquery dom javascript ajax etc. I am dividing the javascript files to be cached and it saves me around 0.2 seconds, also, I have templates on the main page, which are hidden and I switch between hidden and visible, when I want to use these elements on the page, (like div or table, some elements which are selected and inserted into another content div”, but I want to load these static templates from a file, so that the browser gets the file, and on page refreshes, the browser laods the static html file from cache, and It will save me a lot of miliseconds this way. but I don’t know if current browsers assume htm files are static. I am helping the browser to assume the file is static, by saving it as *.htm , instead of *.php. What file extensions should I use, for making the browser assume they are static files? would htm be assumed to be static? Would you suggest using *.txt?

  • 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-01T15:04:31+00:00Added an answer on June 1, 2026 at 3:04 pm

    You just need to set the correct HTTP caching headers on your files when you serve them.

    https://developers.google.com/speed/docs/best-practices/caching

    For static files you can configure your webserver to do this (eg Website image caching with Apache), for dynamic files you can do this on the fly (in PHP with the header() function).

    Note that the file extension doesn’t really matter either, you should tell the browser what the type of files is using the Content-Type header (though the extension will help your webserver guess this).

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

Sidebar

Related Questions

I'm currently developing a website which stores bookmarks in a MySQL database using PHP
I am developing an eCommerce website which contains around 2000-3000 products(no.can be increase in
Okay basically, I'm designing and developing a fairly complicated website which revolves around the
am new to StackOverflow.. I am developing a website which requires extensive ORM...using asp.net
i'm developing a website which is using a background video for the home page.
i am developing website there some files which are placed in folder and also
I'm developing a website which will be used in the corporate intranet which uses
I'm developing a website which to begin with will have three clear sub sites:
I am developing a website which display some products in a grid. All products
I am new to Joomla development, I am developing a website in which I

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.