File cache is returning garbled data

File cache is returning garbled data

by Benjamin Visness -
Number of replies: 0

I just migrated our Moodle site over to another server and upgraded it to 3.3+ in the process. We're seeing weird caching issues, though, that make the site completely unusable.

The theme's CSS and Javascript files are coming back as total gibberish. Here's what I get when I go to https://class.eschel.org/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.css:

��������VKo�8��W�5؆)��DDQ��R`o�=�dP�H""�I'N����^��M��4�8��|��c6|��Y:� #/An�e�����/�?hŖ,���|�R�ȷ,p�IB�-C4�w ��?2�̀ �L�&6���Z�bkso6{�W���~p�Βj{6��7��^�,����4y��Le��9��Bf��t��{���{��!�h�8�T=R_���2�<_i4��0z����vSsa�_C��7wݫ�I6�i�t�x^Z�I��Җg�iX^
����4w̨̭�i�����f�uDэ��u��L�*灴��B�X�O�j�w�re��*�oT���*��U9�&Z��s!�@�,�:�~<R��<:g���ː���v��e�Z�
~���@�`y<���$ܝ4�G����갗t5\�ȷp�1�C �X�er����GZDZ��F���'(a�J�޼�!5�?w)�rǟ�ɏ;��g�*1S%x���$eH.2���^V�_ge�t7��8٦!�V���Nw���Z��s�꒥�ZsQah�6��Y"3�~��b�����S/c��t�^�B����.�Kvj�=���ey�����T�p��>�ϑ��<um�F����c)^n��׻��J��1v�����f��f��rM#ͅD�F�):�qD��b��r�l��å�l k�W�M(nʓ���gu��iѳ��0�i�����Z�����4S]�#�q����uc�xjը�c<~��{B�ͺ�S���;U<�!�p��e�p��[��X����u�ױ
h92�ǵg�*=4H�`-���ɹ�7ż(��Y�j�X�ao
y�b]�١�<-�������}��hg�i^zQ.�xR#�Dc�+F1�������p	���hU��b`�٤N��
_C�&-��:Ͱw�Pt��LyN�_:�R����5f�Nb�2N�Ec�)�!nIQ\�?��p���������c��!<��`�V��ѵp���?w��oajg$�8HT=�;>��!�u�+��
The same applies to the Javascript. (http://class.eschel.org/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js)

It appears to be a cache-related issue, because when I purge all caches, the site appears normally. Then I refresh the page and it's back to gibberish.

I can keep the CSS looking ok by turning on theme designer mode, but that doesn't fix the Javascript, and obviously I would prefer to be able to cache things!

Any ideas?

Average of ratings: -