HTTrack Website Copier
Free software offline browser - FORUM
Subject: CSS served from a PHP file is broken for Chrome!
Author: Poorya
Date: 02/22/2018 13:17
 
Hello,

I'm downloading a site which all CSS and JavaScrips are served through a PHP
file, its called YuiCombo.php lets think:

<link rel="stylesheet" type="text/css"
href="***siteaddress***/theme/YuiCombo.php?file1.css" />
<link rel="stylesheet" type="text/css"
href="***siteaddress***/theme/YuiCombo.php?file2.css" />
etc ...

<script type="text/javascript"
src="***siteaddress***/theme/YuiCombo.php?file1.js"></script>
<script type="text/javascript"
src="***siteaddress***/theme/YuiCombo.php?file2.js"></script>
etc ...

And they are saved in 2 files in "theme" folder ("SomeFile1" for CSS and
"SomeFile2" for JS, with all CSSs and JSs together), with no extention (Type:
C source code (text/x-csrc)). 

So, loading downloaded pages in chrome causes broken CSS and JS and this error
is shown in console:

[Deprecation] CSS cannot be loaded from `file:` URLs unless they end in a
`.css` file extension.

How can I overcome this error?(since CSS file extension is in query not
filename!)

Thank you.
 
Reply


All articles

Subject Author Date
CSS served from a PHP file is broken for Chrome!

02/22/2018 13:17
Re: CSS served from a PHP file is broken for Chrome!

02/23/2018 08:32
Re: CSS served from a PHP file is broken for Chrome!

03/01/2018 15:06
Re: CSS served from a PHP file is broken for Chrome!

03/27/2018 22:15
Re: CSS served from a PHP file is broken for Chrome!

03/27/2018 22:16
Re: CSS served from a PHP file is broken for Chrome!

03/27/2018 22:17
Re: CSS served from a PHP file is broken for Chrome!

04/08/2018 07:00
Re: CSS served from a PHP file is broken for Chrome!

05/15/2018 05:56
Re: CSS served from a PHP file is broken for Chrome!

07/10/2018 07:13




c

Created with FORUM 2.0.11