Jump to:

22977 Posts in 11806 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » SS 2.4.7 set_suffix_requirements(false);

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

Page: 1
Go to End
Author Topic: 466 Views
  • tekilla83
    Avatar
    Community Member
    20 Posts

    SS 2.4.7 set_suffix_requirements(false); Link to this post

    Hi,
    I've a problem with Silverstripe 2.4.7
    Requirements::set_suffix_requirements(false); doesn't work. I set this in mysite/_config.php but I still get mtimesuffixes on my css files.

    I want this disabled because of the serverside caching algorithm.
    I deleted the silverstripe-cache folder, but that didn't help.

    Maybe it's a Problem with some of my modules?
    -customtranslations
    -dataobject_manager
    -mollom
    -multiselectfield
    -spamprotection
    -swfupload
    -uploadify
    -userforms

    I've even changed Requirements.php line 773 from
    return "{$prefix}{$fileOrUrl}{$mtimesuffix}{$suffix}";

    to
    return "{$prefix}{$fileOrUrl}"; //{$mtimesuffix}{$suffix}";

    still got the suffix from somewhere else.

    please Help.

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: SS 2.4.7 set_suffix_requirements(false); Link to this post

    It sounds like the reason it's still appearing is because responses are being cached somewhere, or perhaps it's the serverside caching algorithim that you speak of?

    If you put "?asdfasdf=23423423" onto the end of the URL for your HTML page, do they still appear? If not, it seems like there is an HTTP cache, either on your server, or it's just your browser cache.

  • tekilla83
    Avatar
    Community Member
    20 Posts

    Re: SS 2.4.7 set_suffix_requirements(false); Link to this post

    Thanks for response.
    Your right, they do not appear if I put something like "?asdfasdf=23423423" to the end of the url.
    But normally they appear in every browser. On the live server and on my devserver (ubuntu 12.04).
    I all other silverstripe installitions on my dev-server Requirements::set_suffix_requirements(false); works correctly.

    ??!

    466 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.