Welcome! Log In Create A New Profile

Advanced

Tricky Caching reverse Proxy - different User agents to be watched

May 07, 2010 10:18AM
Hello all

i hope somebody can help. didnt find any usefull post nor webside which could help.

short backend story: there is a web application which generates sites, different sites for different clients (ipod, nokia phones, normal browser etc). its an old application running on windows, with really poor performance.

anyway, i had the idea to use the nginx in frontend as reverse proxy with caching, to speed up the site.. and it works perfect.(caching time only 10min, but enough to take load off the backend). the problem is:

- when the first visitor is a normal browser, the generated page will be the version for browser -> looks bad on the iphone/nokia phone
- when the first visitor is iphone.. it looks bad on everything else.


so ... is it possible.. to cache each version of the response based on the http-agent? and to deliver when the agents xyz matchs the cached version?

or i am asking for to much?

the websites are really small, so if a iphone has 10 different User-Agent variables (language etc in it) it doesnt matter, it can easy save the side 10x.

my english isnt best.. if its not clear what i mean.. please say so.. will try it again :)

any help/tricks/hints would help

greets
Musa
Subject Author Posted

Tricky Caching reverse Proxy - different User agents to be watched

musa May 07, 2010 10:18AM

Re: Tricky Caching reverse Proxy - different User agents to be watched

Igor Sysoev May 07, 2010 05:24PM

Re: Tricky Caching reverse Proxy - different User agents to be watched

musa May 10, 2010 03:41AM

Re: Tricky Caching reverse Proxy - different User agents to be watched

Ryan Malayter May 10, 2010 09:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 161
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready