Active
Project:
Boost
Version:
6.x-1.x-dev
Component:
Expiration logic
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2012 at 19:57 UTC
Updated:
13 Feb 2012 at 02:00 UTC
All my site is working fine, mobile and desktop. But I can't clear any mobile file after update a node, my paths:
cache/
normal/
desktop/
mobile/
Both are created and loaded fine. Even using a rule action I can't clear a mobile file
Comments
Comment #1
RAFA3L commentedI'm using this code
http://mobiledrupal.com/simple-apache-configuration-file-mobile-device-d...
But I put all cached files under same path, in the cache folder, because the mobile files have another name, for example:
file_device=mobile-high.html
and desktop files
file_.html
In this way when I update a node all the related cache files are deleted fine, mobile and desktop
But I notice a problem when a node is under a another level, I get a 404 error page not found, for example:
domain.com/level1/level2
I print the $_SERVER['QUERY_STRING'] and show that the node name is duplicated and cause the problem, for example:
q=level1/level2/level2
I think the problem is there but I'm not an expert with mod rewrite
RewriteCond %{HTTP_USER_AGENT} ^.*(iphone|android).*$ [NC]
RewriteRule (.*) $1?device=mobile-high [E=device:mobile-high,QSA,S=1]
any idea? thanks in advanced
Comment #1.0
RAFA3L commentedafter update