• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Modified image stays in cache in browser

Explorer ,
Nov 16, 2015 Nov 16, 2015

Copy link to clipboard

Copied

Hi,

I have an image edition module that permits to rotate an image 90º right or left.

It rotates the image, rewrtite it in the same file and redisplays it:

  <CFIMAGE

    ACTION="rotate"

    ANGLE="#rot#"

    SOURCE="#path##getItem.fileName#"

    DESTINATION="#Path##getItem.fileName#"

    OVERWRITE="yes"

    >

    <!--- Invert width and height --->

    <CFSET width = GetItem.height>

    <CFSET height = GetItem.width>

..............

  <IMG SRC="#path##getItem.fileName#"

       WIDTH="#width#" HEIGHT="#height#" BORDER="0" ALT="">

The height and width are indeed inverted, the file is correctly modified, but the image displayed does not look rotated.

It looks like the browser still displays the file in the cache, although the Last-modified parameter of the file has been modified and set to after the date of the file in the cache.

I don't even know if it is a problem with ColdFusion (version 9), IIS (version 7.5 Under W 7 Pro) or the browser (both MS Explorer with cache set to "Automatically" and Firefox)

Views

183

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Resources
Documentation