首页 > 解决方案 > why css file was damaged on server

问题描述

I have a problem with my style.css file.
after i published it on plesk server, it worked fine. but some times, (such as when press Ctrl+F5 ) or simple refresh, it's content is unreadable.
I attach an screenshot . how to fix it? enter image description here

标签: cssplesk

解决方案


It could be a encoding mismatch. Make sure that the client and server are using UTF-8 to encode the file. If that does not work it might be a error while sending/receiving the file. If you are on Chrome, use the network tab in the Chrome dev tools to check that out.


推荐阅读