| From: | Jasen Betts <jasen(at)xnet(dot)co(dot)nz> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Store base64 in database. Use bytea or text? |
| Date: | 2011-01-29 01:58:54 |
| Message-ID: | ihvs8u$cbe$2@reversiblemaps.ath.cx |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 2011-01-28, Dmitriy Igrishin <dmitigr(at)gmail(dot)com> wrote:
> --001636c598d9470a92049ae97be4
> Content-Type: text/plain; charset=UTF-8
>
> 2011/1/28 Andre Lopes <lopes80andre(at)gmail(dot)com>
>
>> Hi,
>>
>> Another question about this subject.
>>
>> It is possible to cache this images from the database? In the future I
>> will need to cache the pictures.
>>
for HTTP caching to work you need to serve the resources with
apropriate HTTP headers, and probably need to honour HEAD requests in
a useful way.
you mention PHP, how does your web server communicate a HEAD request
to your PHP script?
it's beginning to look like disk might be a better place to store the
images. it's more work to administer, but it lets the server and
cache interact naturally.
--
⚂⚃ 100% natural
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Mike Christensen | 2011-01-29 02:01:02 | Re: Error trying to install Ruby postgres gems on OS/X |
| Previous Message | Thom Brown | 2011-01-29 01:56:45 | Re: Error trying to install Ruby postgres gems on OS/X |