faqts : Computers : Programming : Languages : JavaScript : Browser Settings

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 14 people (36%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

quelle est l'instruction à mettre dans le header pour forcer une page html à se mettre dans le cache

Jun 26th, 2001 17:44
Jean-Bernard Valentaten, Christophe Buérig,


Hi Christophe,
since this is an english FAQ-page please post in english, so that other 
people than me understand you (by the way it would also be polite!!!).
I'll just translate before answering:
What is the piece of code that has to be inserted in te header to force 
a html-page to be put into cache?
Well my friend this definitely isn't a javascript question (well ok it 
can be as I'll describe below)!
Also it means that you haven't got the slightest idea of caching 
principles.
If your browser has caching enabled with the proper preferences, every 
html-page will be put there (that's why your harddrive get's so messed 
up when you surf alot). It is then crosschecked with the server.
If you want to mess up every persons drive that comes by your page you 
can either use meta-tags, or set a cookie (which would be js again).
If you want to use one of these techniques (and really bother peoples 
caches) please get yourself a manual and read it.
HTH