Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8021451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:59:12+00:00 2026-06-04T21:59:12+00:00

We have a design exception for mobile devices, which loads a different JS, layout,

  • 0

We have a design exception for mobile devices, which loads a different JS, layout, CSS and image files.

With FPC off, it works perfectly. However, when it is on, everyone gets the regular site (no exceptions).

I assume this is due to head.phtml being cached.

Is exclusion of head.phtml from FPC the way to go here? Or is something else at play?

If it’s the prior, what’s the best way to do it? Create a custom module with cache.xml, and mimic cache.xml from Enterprise/PageCache?

This is Magento EE 1.11.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T21:59:14+00:00Added an answer on June 4, 2026 at 9:59 pm

    If you can avoid it, don’t bypass the cache for any blocks. It will improve your user experience in the log run. However, there’s a few ways you could tackle this issue.

    I’ve blogged here about disabling the cache on a per controller basis.
    You could potentially use the same method for the moment, except with a different “if” condition.

    Where I’m checking:

    if ($action instanceof <controller_class_name>) {
    

    You could just as easily use:

    if ($user_is_mobile == true) {
    

    Doing it this way would only get your mobile users working in the meantime. Really, the answer isn’t to disable or bypass the cache, it’s to use this same method to listen for the page request and assign different layout handles for mobile and non-mobile requests. Each layout handle will then cache accordingly.

    Look into how you use handles in Layout Updates. From memory it’s something like this:

    Mage::app()->getLayout()->getUpdate()->addHandle("mobile");
    

    Then in your page.xml, add a new node called mobile, something like this

    <mobile>
        <reference name="root">
            <remove name="mainHead" />
            <block type="core/template" name="mobileHead" />
        </reference>
    </mobile>
    

    Or something along those lines. This is insanely untested, but I hope you get the idea.

    You could otherwise look at using responsive css depending on screen resolution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this design which I cannot seem to get right, I would like
I have to design a database which will allow me store data in multiple
I have a Java exception handling design question . I have a Backing layer(java
I got many different SQL tables with the same design - all have identity
I have the following code in which dbh constructor may throw exception. The question
I have FlashcardSchemas and PackageSchemas in my design. One flashcard can belong to different
I have to design a data structure that is to be used in a
I have to design a form with an input inside it. I use background
I have to design and implement a Fortran routine to determine the size of
I have to design a database to handle forms. Basically, a form needs to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.