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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T02:42:55+00:00 2026-06-03T02:42:55+00:00

On JBoss 4.2.3.GA, we have a JSP response that is being generated with transfer-encoding:chunked.

  • 0

On JBoss 4.2.3.GA, we have a JSP response that is being generated with transfer-encoding:chunked. This is preventing our Netscaler load balancer from allowing the HTML generated by the JSP from being cached because it thinks it is variable content.

But if we have the max-age set, shouldn’t the request still be cached regardless of the transfer-encoding?

I decided to try to get the JSP to return with fixed length (setting content-length so that way transfer-encoding would be set to fixed). . I did the following test:

Created a Jboss 4.2.3.GA web application with a test.jsp file with lots of content in it. I verified that when deployed this JSP file rendered from the server with transfer-encoding:chunked. The overall size of the content was 71.00Kb.

I went into test.jsp and tried various settings:

response.setContentLength(90000);
response.setBufferSize(90000); 

Verified test.jsp still transfer-encoding:chunked.

I also tried editing jboss-4.2.3.GA\server\default\deploy\jboss-web.deployer\server.xml and setting:

<Connector ... bufferSize="90000" socketBuffer="90000" />

Verified test.jsp is still transfer-encoding:chunked.

What am I doing wrong here? How can I get this content cached?

  • 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-03T02:42:58+00:00Added an answer on June 3, 2026 at 2:42 am

    The problem was, I didn’t have the

    response.setContentLength(90000);
    response.setBufferSize(90000);

    on the top of the page. Once I moved it, this worked.

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

Sidebar

Related Questions

I have JBoss AS 5. I'd like to see the default JSP that JBoss
I am developing a java webapp, using jsp/jquery/ejb/jboss. I have a web-form that enables
I have jboss EAP 5.1 .I want to know which eclipse works with this
In our Production environment we have JBoss running in a clustered mode with 4+
I'm using: Hibernate MySQL jBoss I have to create an application that allows user
I have a JBoss server (Server A) that is publishing messages on a topic.
I have a jboss web service that is getting the wrong initial context. I
This is a continuation of the question here: JBoss - does app have to
Working in the JBoss AS portlet we have been unable to open a jsp
I am using UrlRewrite in a JSP project over JBoss . I have configured

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.