brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

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

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by Rinyuu Friday May 14, 2021 at 14:46 GMT Originally opened as https://github.com/adobe/brackets/issues/15348


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