Highlighted

Modified image stays in cache in browser

Explorer ,
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

130

Likes

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

Modified image stays in cache in browser

Explorer ,
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

131

Likes

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
Nov 16, 2015 0

Have something to add?

Join the conversation