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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:08:24+00:00 2026-05-16T16:08:24+00:00

I am working on a webbased system where users will click through a lot

  • 0

I am working on a webbased system where users will click through a lot of pages. Because they will often return to specific pages (for example, an overview of books), I would like to implement some caching mechanism to speed things up.

Before I show the contents of the user, I would store an MD5 checksum of the content in a database, together with the user’s ID and the URL of the page.

When he logs in next time, I’ll check if there is an entry with the URL and the UserID. If there is, I compare the stored MD5 with the one I’ll calculate freshly, and if the MD5s are equal, I send a “not changed” header so the browser does not have do download the whole page.

  • 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-16T16:08:25+00:00Added an answer on May 16, 2026 at 4:08 pm

    Have you first profiled the web application to identify where your performance bottlenecks are located?

    Beware of unnecessary optimization: if the pages are already loading just fine but you’re trying to squeeze out a few percentage points of speed, I personally wouldn’t bother with any specialized optimizations.

    Using the proposed method, keep in mind that you will still be making database hits, in addition to MD5 computation. First ensure that you have the proper indexes in place in the database to speed up your queries — this might be all you need to do.

    Is the page image-heavy? Are the images stored as BLOBs in the database or on the filesystem? If the images are stored in the database, move them to the filesystem and store the filenames in the database instead. Use a web server dedicated to static content to serve up the images. The static content server can also be a proxy for your app.

    If the goal is to reduce bandwidth usage in terms of plaintext content (i.e., HTML, CSS and JavaScript), I suggest simply turning on gzip compression. Also, consider the static content web server for this case.

    But to answer your question about whether your proposed solution is reasonable: I imagine it could work, but there are many factors as to whether it is effective on any given site. So one thing you can do is implement the caching system and then run benchmarking tests against your site (e.g., Apache ab) and see if it in fact makes a difference.

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

Sidebar

Related Questions

I'm working on a web based system (PHP & MySQL) that has users who
I am working on a web-based application that will require users to enter a
I'm working on a web-based project that users will access after having been authenticated
I'm working on a larger Web based Project, that probably will have to handle
I'm working on a web-based academical evaluation project (VS2010,C#,ASP.NET). Users can enter the web
I'm working on a web-based business application where each customer will need to have
The system that I am working on is an Intranet System only accessible within
Working on a web based buying and selling application with PHP MySQL where users
I am currently working on a webbased systen using a Mysql db. I realised
I'm working on making a consumer CRM system for my boot-strapped startup, where we'll

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.