Recommended Magento settings for Fasterize

Modified on Tue, 04 Dec 2018 at 04:46 PM

- On System -> Configuration -> Web -> Session Validation Settings, here are the recommended settings. 


"Use SID on Frontend" should be set to "No" if you do not use multiple domains on the same magento instance, otherwise the GET ___SID parameter on the URL would disrupt the cache. The other three parameters must be set to "No" because the traffic of the same user can come from several different IP addresses. 


- "Redirect to CMS-page if Cookies are Disabled" on System Configuration-> Web-> Browser Capabilities Detection must be disabled since visitors served by Fasterize will not receive cookies until they have placed something in their browser. basket or did not connect. 


To allow Fasterize and Magento code detection to be aligned, Fasterize provides the HTTP header x-user-agent-class in the requests. 

Here is a patch used by one of our clients on the getDeviceType method. 

// patch for the adaptative design with Fasterize

if (isset($_SERVER['HTTP_X_USER_AGENT_CLASS'])) {

  switch ($_SERVER['HTTP_X_USER_AGENT_CLASS']) {

    case "old":

    case "bot":

    case "desktop_recent":

      return "d";

    case "tablet":

      return "t";

    case "mobile":

      return "m";

    default:

      return "d";

  }

}

// end patch for the adaptative design with Fasterize


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article