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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:40:23+00:00 2026-05-28T05:40:23+00:00

In my current project I’m getting some html templates (for a single page interface

  • 0

In my current project I’m getting some html templates (for a single page interface web app) via ajax. Now I’m interested if the caching works as expected – so I would like to enable caching for those templates. Does it make sense to enable caching just like on the production environment.

In my opinion I would make no difference between development and production environment.

As I see the pros/cons:

PROS:

  • no extra testing if it works in production environment
  • no need for different configuration on dev/production environments

CONS:

  • cache needs to be configured according to latest file versions, not release-version (otherwise you’ll have to constantly clear the cache and the QA will annoy you with already resolved bugs)

Does that make sense?
Any other pros / cons / recommendations?

Or is it a better approach to enable caching on the development environment just shortly to test some specific behavior (in my case the caching of the templates, or in another case the caching of the static files)

  • 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-28T05:40:24+00:00Added an answer on May 28, 2026 at 5:40 am

    I think I disagree.

    You don’t want your client side code cached in dev. Else you are going to spend a lot of time clearing caches, and you are going to spend a lot of time figuring out why things don’t work, only for it to be a “oops, I didn’t clear my cache” issue.

    You do want it cached for your releases. This is easily accomplished via configuration in your build process — you can append some build specific info to the file names of your build artifacts, and the browser will cache the content for your. When a new release comes, the names of the relevant files are different so the browser will search for them.

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

Sidebar

Related Questions

My current project is about doing some changes in an already build web application
Current Project Setup I've been working on a web-based chat, similar to Facebook chat.
My current project has a development web server and live web server. Developers make
My current project requires me to assemble a .zip file containing HTML and text-only
My current project is getting awfully large. I have dozens of activities, adapters, fragments,
In our current project, we have one particular page where, when viewed in IE7
For a current project I am embedding a mobile site into an iOS app.
The current project i am working on is extensively using web services and is
Our current project at work is a new MVC web site that will use
In my current project, some tables have a column named changed, which indicates if

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.