adobe / brackets

An open source code editor for the web, written in JavaScript, HTML and CSS.
http://brackets.io
MIT License
33.25k stars 7.63k forks source link

LivePreview CSS not updating until making change in CSS file (PHP pages) #15348

Open Rinyuu opened 3 years ago

Rinyuu commented 3 years ago

I have found people having similar issues, but none of their solutions seemed to work for me.

The problem seems to lie in including external php files. I have all my head stuff in an external file I include with every PHP page, but the CSS in LivePreview doesn't apply until I make any change to the CSS file. (Deleting any one character and then undo does the trick) Hard refreshing Chrome (Version 90.0.4430.212 (Official Build) (64-bit)) does not seem to work.

Any way around this?

Reproduce:

  1. On a PHP page, call an external PHP file: <?php include("header.php"); ?>
  2. Add the CSS tags inside header.php : <link href="style.css" rel="stylesheet" type="text/css">
  3. Open LivePreview on the first PHP page, CSS will not update until editing one character in style.css

Brackets: Release 1.14 build 1.14.1-17752 (release-1.14.1 959fed135) build timestamp: Thu Nov 28 2019 01:05:51 GMT-0800

Windows OS build: 19042.928