Results 1 to 1 of 1
  1. #1
    Raffael is offline Member
    Join Date
    Oct 2012
    Rep Power

    Default Http-Header for NOT storing cache has no effect on Mozilla

    Hi, all !!

    my web app has a section that lists a table where each register is an image name (from db, a byte[]). The user may click on a register, then a modal appears showing that image. It works fine, but on mozilla browser, even though user clicks on another register, the modal keeps showing the latest image seen. I guess it's a problem due to mozilla cache control, but I dont know how to fix it.

    I dont have this problem on Chrome

    I'm rendering the specific image from a servlet, here is how I set the headers:

    Java Code:
            resp.setHeader("Content-Type", getServletContext().getMimeType("nome.gif"));
            resp.setHeader("Content-Length", String.valueOf(loginMB.getTamanhoImagem()));
            resp.setHeader("Content-Disposition", "inline; filename=\"+imageName+"\");
            resp.setHeader("Cache-Control", "no-store");
    thanks in advance
    Last edited by Raffael; 10-02-2012 at 07:25 PM. Reason: format

Similar Threads

  1. How do you modify http header?
    By JavaVox in forum Networking
    Replies: 2
    Last Post: 06-29-2011, 06:57 PM
  2. textContent is not wrking in mozilla 1.7
    By in forum New To Java
    Replies: 1
    Last Post: 09-23-2009, 09:50 AM
  3. Mozilla using the same session ID for different browser
    By ajith_raj in forum Advanced Java
    Replies: 1
    Last Post: 04-23-2009, 12:31 PM
  4. Storing Array from HTTP Post
    By kskinner in forum New To Java
    Replies: 1
    Last Post: 09-08-2008, 06:00 AM
  5. Java Mozilla Html Parser 0.1.7
    By levent in forum Java Software
    Replies: 0
    Last Post: 07-30-2007, 04:30 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts