Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

remove query strings from combined files


Reply

8 Posts   343 Views

Avatar
cSGermany

2 September 2013 at 11:22pm Community Member, 37 Posts

Hi,

is it possible to remove the query strings form the combined js and css files (?m=12345678)?
If it's possible, how?

Thx in advance

cSGermany

Avatar
Devlin

3 September 2013 at 2:34am Community Member, 215 Posts

mysite/_config.php

Requirements::set_suffix_requirements(false);

Avatar
cSGermany

3 September 2013 at 4:33am Community Member, 37 Posts

that was easy :D
Tank you!

Avatar
cSGermany

4 September 2013 at 1:02am Community Member, 37 Posts

Not so easy ;)

This causes the WYSIWYG Editor to disappear ...
That's the console log

Failed to load resource: the server responded with a status of 404 (Not Found) http://domain.de/framework/thirdparty/tinymce/tiny_mce_gzip.…lscreen,inlinepopups&themes=advanced&languages=de&diskcache=true&src=false

Failed to load resource: the server responded with a status of 404 (Not Found) http://domain.de/framework/thirdparty/tinymce/tiny_mce_gzip.…lscreen,inlinepopups&themes=advanced&languages=de&diskcache=true&src=false

any ideas?

Avatar
Devlin

4 September 2013 at 1:41am Community Member, 215 Posts

Works for me. You're sure both issues are related?

Have a look in your framework/.htaccess file. If there isn't a mention of "tiny_mce_gzip", then you're probably working with an outdated version of SilverStripe 3 and you need to update to ss 3.0.5 or 3.0.6-rc1.

https://github.com/silverstripe/silverstripe-framework/blob/3.0/.htaccess

Avatar
cSGermany

6 September 2013 at 2:48am Community Member, 37 Posts

Hi,

the errors only display if I use

Requirements::set_suffix_requirements(false);

I'm using SS 3.0.5
Ok i'll look it up in the .htaccess and i'll also try it on another installation.

Thx

Avatar
Devlin

6 September 2013 at 4:04am Community Member, 215 Posts

Sorry, I'm using 3.1 already...

You're right, this doesn't work in 3.0.

You can workaround this issue if you add "HtmlEditorField::$use_gzip = false;" to your _config.php

Avatar
cSGermany

8 September 2013 at 9:56pm Community Member, 37 Posts

you do not have to apologize :D thats not your fault :P

Thank you for the solution.