Jump to content

Recommended Posts

Hi all,

I'm a noob at php but I have an issue which I don't seem to understand.  I have a index2.php file on our site (I'm converting all the html pages over to php).  The problem is that the index2.php contains links to css files in the head tag but whenever I make changes to the css file, they are not reflected in the php. I can even delete the links to the css files but the index2.php still loads the old ones. 

Now I thought maybe my browser was caching the old pages but I deleted the cache and still no joy.  Below is a copy of my head section of my index2.php file. Maybe something is wrong in there.  With the html pages, making a change to the css file is automatically reflected and works well.

<head>  
<title></title>
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="shortcut icon" href="favicon.ico"/>
<link href="/css/masthead.css" rel="stylesheet" type="text/css"/>
  <link href="/css/defaultfive.css" rel="stylesheet" type="text/css"/>
  <link href="/css/tabs.css" rel="stylesheet" type="text/css"/>
</head>
Link to comment
https://forums.phpfreaks.com/topic/33157-php-caching-old-css-file/
Share on other sites

I was not aware that you could define 3 separate css files to be loaded to a page.
Are you sure that is possible?

If not is it defaulting to the last css file that you have on there and has always been disregarding the other 2?  I may be way off on this because I don't use CSS much, or hadn't until this past year.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.