allins
March 1, 2008, 7:53pm
1
or i hope it is the last,
right now i have a default_type text/html setup because i cant figure
out exactly what need to go before the html we are caching to get it
handled properly.
full http headers? havent tried that.
i put
Content-type: text/html\n\n
before our html and the browser doesnt recognize as html so obviously
that isnt it.
allins
March 1, 2008, 8:10pm
2
On Sat, Mar 01, 2008 at 01:38:22PM -0500, Sean A. wrote:
Content-type: text/html\n\n
before our html and the browser doesnt recognize as html so obviously
that isnt it.
Now nginx does not support headers in memcached, so this line is
in a response body.
allins
March 1, 2008, 8:37pm
3
On Mar 1, 2008, at 2:02 PM, Igor S. wrote:
i put
Content-type: text/html\n\n
before our html and the browser doesnt recognize as html so obviously
that isnt it.
Now nginx does not support headers in memcached, so this line is
in a response body.
sorry, i don’t understand.
how can i send the proper mime type without setting default_type ?
allins
March 1, 2008, 8:41pm
4
On Sat, Mar 01, 2008 at 02:27:09PM -0500, Sean A. wrote:
in a response body.
sorry, i don’t understand.
how can i send the proper mime type without setting default_type ?
No.
allins
March 1, 2008, 9:48pm
5
On Mar 1, 2008, at 2:33 PM, Igor S. wrote:
figure
before our html and the browser doesnt recognize as html so
No.
so you can only send one mime type from a memcache via nginx?
you cant serve html and images?
allins
March 1, 2008, 11:57pm
6
Hello!
On Sat, Mar 01, 2008 at 03:38:16PM -0500, Sean A. wrote:
or i hope it is the last,
No.
so you can only send one mime type from a memcache via nginx?
you cant serve html and images?
You can, actually. But you have to configure different locations for
images and html. E.g.
location /images/ {
default_type image/gif;
memcached_pass ...
}
location /html/ {
default_type text/html;
memcached_pass ...
}
Maxim D.
allins
March 1, 2008, 10:03pm
7
On Sat, Mar 01, 2008 at 03:38:16PM -0500, Sean A. wrote:
Content-type: text/html\n\n
how can i send the proper mime type without setting default_type ?
No.
so you can only send one mime type from a memcache via nginx?
you cant serve html and images?
Yes, currently mime type can be set only by default_type.