Re: Asp.net 2.0 caching and images

Tech-Archive recommends: Fix windows errors by optimizing your registry



Alex,

Try adding the t=<random>

To the image url instead of the page. IE caches images based on the image
path not the page path. Making it look like the image path has changed will
stop the caching. For example:

http://msdn.microsoft.com/asp.net/art/asprk.jpg?t=1234

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Alex Greenberg" <minimaximus@xxxxxxxxx> wrote in message
news:1137153195.286553.161060@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I'm having a strange problem:
>
> I have a product.aspx page where the admin can change product
> properties, including the JPEG. The JPEG will always have the same
> name: eg. 120.jpg and in the same location.
>
> 1) Admin visits page and browses to images/myimage.jpg
> 2) Application takes myimage.jpg and creates a modified copy in
> myapp/img and calls it 120.jpg.
> 3) image path in database changes to myapp/img/120.jpg
> 3) Admin leaves page
> 4) Admin revisits page (in same session) and picks a different image,
> which replaces the old one but retains the name 120.jpg.
> 5) Admin leaves and comes back one more time. OLD IMAGE IS STILL
> DISPLAYED (from step 2). Even though image is changed on hard drive.
>
> obviously, IE is caching the image and going back to it on subsequent
> visits in same session. I tried using the No-Cache directive. I also
> added a ?t=<random> to the page parameters. Neither of these worked.
>
> Please help.
>


.



Relevant Pages

  • Re: RDP limited but RWW just fine
    ... Just because no one is sitting at a computer with a session ... RDP client) to get to session 0. ... admin rights can rdp to the box. ... "exceeding" environment present. ...
    (microsoft.public.windows.server.sbs)
  • Re: logging a secured databse from another database via ADMIN user
    ... Every Access session is run under exactly ONE identity. ... identified as "admin" for the remainder of the session. ... You could simply open your unsecured database when logged into Access ... >So I need to log via code providing the password for the ADMIN user ...
    (microsoft.public.access.security)
  • Re: RDP Sessions not "disconnecting"
    ... Yes simply disconnecting does not free up the session unless you go into TS Manager and reset the session. ... is this proof that Owner ISN'T fully logging off? ... You can logon to the Console as Admin and Disconnect ...
    (microsoft.public.windows.server.sbs)
  • Re: Configure SBS Remote Desktop for one session ONLY, BUT not locking new connection attempts
    ... obeys to the same rules in terms of "connecting to a destination". ... Besides me, there's only one admin. ... I log on to my own session in the server, from another workstation, ... Once at the remote site, I figure I need access to some data that I ...
    (microsoft.public.windows.server.sbs)
  • Re: Faking Entity Beans in Tomcat?
    ... I have an admin application which allows me add/change/delete users' ... Surely the data couldn't be held in session level as each user creates a new ... > Well obviously that depends on the amount of data involved, ... > will be using the site concurrently, and the amount of memory available on ...
    (comp.lang.java.programmer)