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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:50:31+00:00 2026-05-28T15:50:31+00:00

My system is Spring MVC based and I checked that Spring automatically sets PRAGMA:

  • 0

My system is Spring MVC based and I checked that Spring automatically sets PRAGMA: no-cache. The system is available to the users through SSL. When the users try to download something using the INTERNET EXPLORER 7 or 8 an error like “Internet Explorer cannot download file from server” appears (more details: http://support.microsoft.com/default.aspx?scid=KB;EN-US;q316431&).

I tried to configure the WebContentInterceptor like the code bellow but does not work:

<mvc:interceptors>
    <bean id="webContentInterceptor" class="org.springframework.web.servlet.mvc.WebContentInterceptor">
        <property name="cacheSeconds" value="2100" />
        <property name="useExpiresHeader" value="false" />
        <property name="useCacheControlHeader" value="false" />
        <property name="useCacheControlNoStore" value="false" />
    </bean>
</mvc:interceptors>

What can I do avoid Spring send the Pragma: no-cache and related to Cache Control?

Regards!

  • 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-28T15:50:32+00:00Added an answer on May 28, 2026 at 3:50 pm

    You can write your own custom interceptor and set the header values to the response object. Interceptors are nothing but filters so override the filter and use the

    prehandle and posthandle to set the request and response headers respectively.

    Let me know if you want specific examples doing that.

    <mvc:interceptors>
        <mvc:interceptor>
            <mvc:mapping path="/**" />
            <beans:bean id="customInterceptor"
                class="org.example.interceptors.CustomInterceptor">
            </beans:bean>
        </mvc:interceptor>
    
    </mvc:interceptors>
    
    
    
    
     public class CustomInterceptor implements HandlerInterceptor{
    
         public void postHandle(HttpServletRequest request, HttpServletResponse response, Object arg2, ModelAndView modelAndView) throws Exception {
         response.setHeader(...);}
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems that ASP.NET MVC just runs on top of ASP.NET WebForms. System.Web.Mvc.ViewPage in
I have created an MVC application that dynamically routes actions and controllers based on
I have a Spring MVC app where I am using a singleton bean that
I'm trying to setup a Spring 3 Web MVC project, using the @Controller, annotation-based
I want to specify a file system path as part of a Spring bean
I have a system which contains multiple applications connected together using JMS and Spring
Type.GetType(System.String) Is there a lookup for the aliases available somewhere? Type.GetType(string) returns null .
I wanted to ask what is the idea behind the fact that System.String doesn't
I am making a software as a service using Spring 3.0 (Spring MVC, Spring
I am using intellij, spring mvc and tiles. At least I am trying :)

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.