Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-31-2004, 04:13 PM   #1 (permalink)
Epsilon
Regular Contributor
 
Epsilon's Avatar
 
Join Date: Mar 2003
Location: Las Vegas, NV
Posts: 127
Epsilon is on a distinguished road
Possible to prevent images in a page from caching?

Is there some sort of HTML directive I can put in the page (maybe a META tag) that will prevent images on the page from being cached? I want to force browsers to reload the images every time the pages is viewed.

(It's for a script I have that allows people to upload photos. If they replace a photo with one of the same filename, they can't see the new photo until they refresh their browser. Causes confusion with dumb computer users.)
__________________
--Epsilon--
Epsilon is offline   Reply With Quote
Old 08-31-2004, 04:28 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
i don't know if this works for sure, but i remembered someone posted it here a while back on an un-related topic.
Code:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
__________________
Mike
sde is offline   Reply With Quote
Old 09-06-2004, 01:58 AM   #3 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,693
redhead is on a distinguished road
I believe the same thing came up in another thread: http://codenewbie.com/forum/t1816.html
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
refresh page automaticlly lampoin HTML, XML, Javascript, AJAX 5 06-18-2004 08:13 AM
page wont load under IE? Admin HTML, XML, Javascript, AJAX 4 03-06-2003 03:11 PM
showing images in different resolutions Hrqls HTML, XML, Javascript, AJAX 2 10-27-2002 10:59 AM


All times are GMT -8. The time now is 08:47 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting