ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.75k stars 1.08k forks source link

Fonts cache problem while adding new fonts #329

Open despens opened 6 years ago

despens commented 6 years ago

Do you want to request a feature or report a bug?

Bug report

What is the current behavior?

After following the instructions on how to install fonts into document server, all fonts except Arial seem mixed up in the Online Editor.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

Following instructions:

What is the expected behavior? New fonts should show up in font selector in Online Document Editor

Did this work in previous versions of DocumentServer?

Didn't test on previous versions

DocumentServer version: 5.1.4-22

Operating System: Ubuntu 18.04, both client and server

Browser version: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Left: Desktop Editor; Right: Online Editor selection_999 740

despens commented 6 years ago

I found out that using the Document Server in with an icognito window (no chache) will make the online editor behave correctly and show the right fonts. Clearing my browser cache didn't help though. Is there a specific URL on the Document Server that I should manually reload?

Maybe the cache time for the fonts could be reduced in future versions?

ShockwaveNN commented 6 years ago

@despens Could you try to clean cache again? It's a known problem if you add new fonts and didn't cleanup browser cache - everything will mix up. It's a very old problem and we still have no solution for this. But cleaning browser cache SHOULD work. Try to clean not only cache but other files also.

despens commented 6 years ago

I did clean the cache thoroughly and the fonts do appear now (except Times New Roman!)

Maybe you could add a random string to the the fonts' URL when requested by the front end? That string could change each time the fonts are rebuilt with documentserver-generate-allfonts.sh.

That is how most CDNs do it.

ShockwaveNN commented 6 years ago

@despens yeah, of course we fought about random string, but we encountered some other troubles, I don't recall exactly that it was, but something with high network load

I've created issue 49811 in our private issue tracker to discuss this with our team

Edison6351 commented 4 years ago

hi @ShockwaveNN ,about add new font cache problem, has any update?

ShockwaveNN commented 4 years ago

@Edison6351 sorry, currently we have no solution, so cleaning browser cache is the best workaround of this problem

Edison6351 commented 4 years ago

@ShockwaveNN OK following this problem, thank you

igwyd commented 3 days ago

It.s fixed aand will be released in the next release.