homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

How to make the browser not cache your work?
Any one have any good ideas in this area?

 4:36 am on Dec 7, 2005 (gmt 0)

I have some work that Im doing in Flash, and its very attractive to my competitors. Ultimately I do have a few tricks up my sleeve so they cant get my work, even in the cache.

However the ultimate would be to stop the browser all together from caching my flash movies. I will have literally 100's of flash movies, and the work is priceless and attractive to thieves in my industry, because at some point all my competitiors will have to have this type of program with these images displayed in my flash movies, if they want to sell anything that is ;)

Any ideas would be TREMENDOUSLY Appreciated!



 4:39 am on Dec 7, 2005 (gmt 0)

If it's an apache server, add this to your .htaccess file

<Files ~ "\.swf$">
Header append Cache-Control "no-cache, no-store, max-age=1, must-revalidate"


 5:21 am on Dec 7, 2005 (gmt 0)

Wow thanks, that was quick response. Unfortunatly using Windows 2000 Server, my site is a Coldfusion site.

Any suggestions for that?

Oh, in addition, I would only want to have that page that uses the flash to not be cached, I ofcourse for ranking and such would like to continue having the rest of the site operate normally with spiders and such.


 1:27 pm on Dec 7, 2005 (gmt 0)

There is nothing you can do to protect your flash files. It's the way the web works - you download to view, so the file is available for your competitors to copy. They could just wget the SWF, they could rip the entire site, they could grab files from the search engine caches... The only real effects of disabling the cache will be to increase your bandwidth use and slow your site.


 4:29 pm on Dec 7, 2005 (gmt 0)

Well for the flash movies, Im using a top layer, of solid white, so when you check your cache it looks blank(slick IMO), also when you do any inputs the top layer gets exposed(to try and stop screen capture). I also will be encrypting the movies so the reverse swf to fla decompiliers will be defeated(in theroy).

But ultimately stoping them from being cached would be the best, if possible. Would make the whole plan more full proof.

If what Key_Master says works on Apache then maybe there is something I could do, Ive researched this a bit and came up empty, but maybe in here there is someone who has been successful....


 6:18 pm on Dec 7, 2005 (gmt 0)

I can confirm that using page Info, Media with Mozilla will save any swf file, that using no-cache headers will not prevent many users from getting the file from the cache (MSIE, Opera and many other browsers), that many offline browsers can grab the file and that swfrip (and many other swf utilities) will unencrypt, decompress and remove passwords easily.
Using a script with online checks within the flash file will prevent someone to steal the swf file and use it. Only honest people won't get your work...


 6:36 pm on Dec 7, 2005 (gmt 0)

Thanks for your input, yeah its a tough battle to keep your work "your work".

"Using a script with online checks within the flash file will prevent someone to steal the swf file and use it."

The program that Im building can be done many ways, we determined that for us flash was the way to go, others have javascript, and some other ways. So the main thing is the image itself, reguarless of how its presented.

Kewl program was copysafe but does not prevent cacheing and you have to install a plugin, its more for stoping screen capture, cause it really put the wammy on your computer while viewing the protected page.


 8:13 pm on Dec 7, 2005 (gmt 0)

Google Coldfusion nocache "http header". I think you'll find the info you need there.

I know nothing about Coldfusion (and more than I care to know about windows) but the technique is roughly same. :)


 8:54 pm on Dec 7, 2005 (gmt 0)

"no cache" headers can be sent by asp, jsp, php, Apache, IIS (...) but will only be obeyed by well behaved browsers on the client side.
You only have control on the server side as scripts and java can easily be disabled...


 8:59 pm on Dec 7, 2005 (gmt 0)

Thanks Key_Master and DanA. I used a program that can make Opera not work on a page, netscape and mozilla and IE should comply though...

That search is perfect, thanks alot! Lots of good info there, Ill post back with what I come up with!


 9:09 pm on Dec 7, 2005 (gmt 0)

I agree that if someone really wants your file they will get it.

IMO you need to properly document and copyright work and then actually ENFORCE it with lawsuits.

Obviously this costs a LOT, but it is very effective for companies such a certain very well known US motorcycle manufacturer.

People with any sense are very wary of using anything to do with that company in a commercial fashion because they sue first and ask questions later.



 9:20 pm on Dec 7, 2005 (gmt 0)

document and copyright work and then actually ENFORCE it with lawsuits

That's exactly right, IMO. Much energy spent on preventing theft tends to take you away from the positive work where you need to focus, and can often limit your ability to actually reach your audience. In today's climate of information overload, finding and reaching your audience is the big battle -- preventing the rip-off artist is a side skirmish.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved