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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

remove query strings from combined files


Go to End


8 Posts   1093 Views

Avatar
cSGermany

Community Member, 37 Posts

2 September 2013 at 11:22pm

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

Community Member, 344 Posts

3 September 2013 at 2:34am

mysite/_config.php

Requirements::set_suffix_requirements(false);

Avatar
cSGermany

Community Member, 37 Posts

3 September 2013 at 4:33am

that was easy :D
Tank you!

Avatar
cSGermany

Community Member, 37 Posts

4 September 2013 at 1:02am

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

Community Member, 344 Posts

4 September 2013 at 1:41am

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

Community Member, 37 Posts

6 September 2013 at 2:48am

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

Community Member, 344 Posts

6 September 2013 at 4:04am

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

Community Member, 37 Posts

8 September 2013 at 9:56pm

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

Thank you for the solution.