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 6876781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:31:13+00:00 2026-05-27T04:31:13+00:00

I activated caching for my app. Works great. I have have a mobile format

  • 0

I activated caching for my app. Works great. I have have a mobile format using

layout.m.php

Which is set to

sf_format: m

So when i open an URL with the specific userAgent i don’t get the layout.m but instead the cached version of the original and vice versa.

how to config. the cache specific to sf_format?

  • 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-05-27T04:31:14+00:00Added an answer on May 27, 2026 at 4:31 am

    I think you need to cache partials and components instead of the whole application. At least for the action/template where you’re detecting the device type of the user.

    It seems that you applied cache to a dynamic part where you’re looking for every request if the user is using a mobile device…

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

Sidebar

Related Questions

I'm working on an Cocoa app which is launched/activated using URLs with a custom
I have just activated/installed PHP and mySQL on my Mac and all seemed to
I have a modal view controller activated in my app, and I would like
I have nginx installed with gzip_static activated. It works fine for CSS and JavaScript
Glassfish 3.1.2, Mojarra 2.1.6, SSL activated I have an question about static resource caching.
I have a WCF activated WorkFlow Service (XAMLX) setup (hosted using WorkflowServiceHost). This WCF
Turns out I don't have Proguard activated on a live app that I have
I have the following function which is activated on click: $('.results .view-rooms').click(function(){ } Is
I have activated the IIS package for windows, and, I created an index.html file
I have a java method activated by a mouse click on a button private

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.