why css file was damaged on server

Stack Overflow Asked by Hamid Talebi on November 18, 2020

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

2 Answers

I found the problem. it's about gzip function that not worked fine.

Answered by Hamid Talebi on November 18, 2020

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.

Answered by Akshat Adsule on November 18, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP