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

The Archive Base Latest Questions

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

Hi there I have developed a dynamic web application that uses Ajax to fetch

  • 0

Hi there I have developed a dynamic web application that uses Ajax to fetch data from databases and keep the GUI up to date but while testing it with IE8 I am experiencing caching issues.

I used the following code in my webmvc-config.xml file to stop the browser from caching:

<mvc:annotation-driven />
<mvc:interceptors>
<bean id="webContentInterceptor"
class="org.springframework.web.servlet.mvc.WebContentInterceptor">
<property name="cacheSeconds" value="0"/>
<property name="useExpiresHeader" value="true"/>
<property name="useCacheControlHeader" value="true"/>
<property name="useCacheControlNoStore" value="true"/>
</bean>
</mvc:interceptors>

and it works exactly as it should, but the problem is that now the browser obviously doesn’t cache anything. what I want to know is how to modify that xml code so that it applies to the Ajax parts of the web app (which are controlled using 5 Controller files); so that the icons..etc are still cached? The path to these controller files would be something like “/admin/**”

I know that the Spring WebContentInterceptor has properties such as “setCacheMappings” and “setPathMatcher” but there is nowhere online that I can find examples of these being using in the xml config file.

ANY help would be much appreciated, it’s really doing my head in.. Thanks. Jake

  • 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-19T15:33:51+00:00Added an answer on May 19, 2026 at 3:33 pm

    In your <mvc:interceptors> you can restrict the URL path each interceptor should apply to, as follows:

    <mvc:interceptors>
        <mvc:interceptor>
            <mapping path="/admin/*"/>
            <bean id="webContentInterceptor" ..... />
        </mvc:interceptor>
    <mvc:interceptors>
    

    It’s all explained here.

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

Sidebar

Related Questions

I have an application that was developed for Linux x86 32 bits. There are
I have a system that we have recently developed - a web application over
I imagine there are many of you out there who have developed an application
I have developed an AJAX based game where there is a bug caused (very
There are many usability evaluation techniques that have been developed over the history of
I have to code a desktop application and some dynamic web content. I'm planning
I have a silverlight 2 beta 2 application that accesses a WCF web service.
I have an large application developed in .Net Compact Framework 1.0 that has been
i have developed my website in VS2010. is there any tool freely available which
i have recently developed a list program in android in which there is an

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.