More than one file with samename from diff dir in cache

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

More than one file with samename from diff dir in cache

Post by anjanesh »

Will this affect the cache ?

<LINK HREF=".../diffdir/index.css" REL="stylesheet" TYPE="text/css">
<LINK HREF=".index.css" REL="stylesheet" TYPE="text/css">

Will both the styles be stored or will the latter overwrite the former ?
Draco_03
Forum Regular
Posts: 577
Joined: Fri Aug 15, 2003 12:25 pm
Location: Montreal, Canada

Post by Draco_03 »

it's a good question
I'm not sure but i'm think that it wil cache the file only once.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

the latter will overwrite styles (on a page-by-page basis) that "conflict" with the previous styles..
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Well looking at my Temporary Internet Files, I'd say the answer is that they can co-exist easily.

Files are stored with the exact web address with them, so there can be hundreds of index.html's or style.css's, and the browser won't get mixed up.

And if you chose to import say two files that are named the same, yet are two seperate files in seperate folders, then I'm positive they will work also.
Post Reply