Xampp doesn't load edited css file. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Xampp doesn't load edited css file.

I am trying to build a website on my local server xampp. at first it works fine but now it doesn't load edited stylesheet. I have refreshed the localhost webpage in the browser, the design changes do not seem to have been applied.

24th Nov 2017, 8:05 AM
Rajnish Deshmukh
Rajnish Deshmukh - avatar
6 Answers
+ 10
no thats not working. instead of that i found this and its working. <link href="style.css?v=<?php echo time(); ?>" rel="stylesheet" type="text/css" /> thanks for help Niush sitaula
24th Nov 2017, 1:23 PM
Rajnish Deshmukh
Rajnish Deshmukh - avatar
+ 4
With a quick Google Search I got this: Use this while linking Css: <link href="style.css?<?=filemtime("style.css")?>" rel="stylesheet" type="text/css" />
24th Nov 2017, 11:17 AM
Niush
Niush - avatar
+ 1
Some other things might have gone wrong. Only Css would not face the problem. May be Style, importing, something might be wrong.
24th Nov 2017, 9:25 AM
Niush
Niush - avatar
+ 1
no style, importing is not wrong. i checked all these things. At first it works fine but after some time it just stuck at old css file and not updating it. it only shows the old style.
24th Nov 2017, 10:35 AM
Rajnish Deshmukh
Rajnish Deshmukh - avatar
0
This problem also in import my custom javascript file main.js and have the solution above.
1st Dec 2018, 9:54 PM
Abdalrahman Almesery
Abdalrahman Almesery - avatar
0
As an alternative to using this code, you can also make a duplicate of the files, then rename it. I just found this out. I think it doesn't have any previous files to remember, so it is a clean start. :)
20th Feb 2020, 12:37 PM
Cova
Cova - avatar