• does not work with polylang setting ‘When the front page is visited, set the language according to the browser preference’

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Emre Vona

    (@emrevona)

    you need to contact the plugin developer. we must be sure that the feature works with the cache plugins or not.

    Thread Starter tommuc1

    (@tommuc1)

    thanx for your superfast reply 🙂 yep – that’s what i thought too and why i informed you both: https://wordpress.org/support/topic/bug-report-111/

    Thread Starter tommuc1

    (@tommuc1)

    moreover – thanx for your free and great working plugin! supereasy to set up – and in my tests way better results than ‘W3 Total Cache’ ‘LiteSpeed Cache’ ‘WP Super Cache’ ‘Hummingbird’.

    cheers
    tom

    Plugin Author Emre Vona

    (@emrevona)

    thanx for your superfast reply 🙂 yep – that’s what i thought too and why i informed you both: https://wordpress.org/support/topic/bug-report-111/

    let’s wait for the answer.

    moreover – thanx for your free and great working plugin! supereasy to set up – and in my tests way better results than ‘W3 Total Cache’ ‘LiteSpeed Cache’ ‘WP Super Cache’ ‘Hummingbird’.

    thank you so much 🙂

    Thread Starter tommuc1

    (@tommuc1)

    have a nice weekend – keep up your great work.
    our frontpage with more than 12mb 160 requests (pix and video overkill) loads to first view within 1 second only because of your great work!
    https:///www.shootoutside.com

    Thread Starter tommuc1

    (@tommuc1)

    ok – finally the developer of polylang plugin answered:

    ‘As far as I know, WP Rocket makes things automatically. The uncached page is served to new visitors to allow the detection of preferences, and the cached page is served to returning visitors.’

    but if this is really the way from wp rocket, I think it’s a pretty stupid way.

    i wonder if the polylang thing would be feasible at all – or if the cache plugin always has to do it?

    wouldn’t it be the simplest wp fastest cache would have a setting for the browser language query and would then set up a redirect in the .htaccess for the corresponding language cache?

    e.g.:

    `RewriteEngine On

    RewriteCond %{HTTP:Accept-Language} ^en [NC]
    RewriteRule ^$ http://mysite.com/en/ [L,R=301]

    RewriteCond %{HTTP:Accept-Language} ^de [NC]
    RewriteRule ^$ http://mysite.com/de/ [L,R=301]

    RewriteCond %{HTTP:Accept-Language} ^nl [NC]
    RewriteRule ^$ http://mysite.com/nl/ [L,R=301]

    RewriteCond %{HTTP:Accept-Language} ^fr [NC]
    RewriteRule ^$ http://mysite.com/fr/ [L,R=301]

    RewriteCond %{HTTP:Accept-Language} ^es [NC]
    RewriteRule ^$ http://mysite.com/es/ [L,R=301]

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-l

    RewriteRule ^(en|de|nl|fr|es)/?$ index.php?lang=$1 [QSA,NC,L]

    Plugin Author Emre Vona

    (@emrevona)

    but Apache cannot detect the browser language.

    Thread Starter tommuc1

    (@tommuc1)

    Thread Starter tommuc1

    (@tommuc1)

    but if that would be too unreliable or not perform well enough, a php-script can take over the task as well. i think this can only be done in the caching plugin and not in the voice plugin.

    but frankly, the whole thing is not too important for us either – if it would be possible, it would be nice – if not, it doesn’t matter …

    Plugin Author Emre Vona

    (@emrevona)

    in the past I tried to implement it via PHP but I could not do it. The best way is getting via javascript.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘bug report’ is closed to new replies.