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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:07:01+00:00 2026-06-10T23:07:01+00:00

I have a jsp file pageshow.jsp and the parameter id, Is there any way

  • 0

I have a jsp file pageshow.jsp and the parameter id,

Is there any way to cache the jsp file in server-side based on the url parameter

Requesting page pageshow.jsp?id=100 get from cache instead of building from server
Requesting page pageshow.jsp?id=200 get from cache instead of building from server

Above two pages should have different cache content since their parameter are different

This may avoid the rebuilding the jsp file in server side and also decrease the server load

  • 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-10T23:07:03+00:00Added an answer on June 10, 2026 at 11:07 pm

    I’d take a look at using a CachingHttpFilter similar to what AlexR has proposed, but look at using the HTTP headers to control the caching rather than storing data in a roll-your-own-content-cache.

    This article explains nicely how to go about comparing the If-Modified-Since HTTP header when a URL is requested subsequent times. It’s then up to your Filter to send back a HTTP 304 response.

    Comparison of dates:

    The client asks the server to a specific page: if the client has
    already read the page, it sends a request (to server) containing the
    last modification date of its cached page (eg “If-Modified-Since:
    21/07/2002 13:47:24 GMT”);There also the header If-Unmodified-Since;

    The server compares this date given by the client with the last
    modified date of requested page:

    if the page on the server has the same date, then the server informs
    the client that it can use the version’s page in its cache (“HTTP/1.1
    304 Not Modified”). The exchange between client and server stops
    there;

    if the page on the server is newer, then the server informs the client
    of the change (“Last-modified: 21/06/2012 08:45:37 p.m. GMT”) and sent
    this page to client. The browser stores the date of last change of the
    page.

    You will also want to look at the ETag HTTP Header.

    Unfortunately caching sounds simple but is often difficult to get right. Tuning your database queries is often the best place to start with improving your application performance.

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

Sidebar

Related Questions

i have created one jsp file but it doesn't running in any way..!! it
I have a JSP file, member.jsp which is as follows : <%@ page import=java.util.*
I have a jsp file where I send two parameters using the following url.
I have a jsp form, there is the next line in the code: <%@page
I have a a JSP file in this format(two select tags)- <%@ page import=mypackage.*
I have a JSP file that contains lots of if statements. Is there a
I have jsp file: <%@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8%> <%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core%>
I have the JSP file (/page.jsp) in the root of my app directory. I
I have a page with jstl included. In jsp file I have to pull
I have the following jsp file <%@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1%> <%@ page

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.