[TYPO3-dev] Varnish

Tomas Norre Mikkelsen tomasnorre at gmail.com
Thu Sep 29 22:57:21 CEST 2011


Hi,

I'm new to varnish, and therefore i got some questions.

I have a clean TYPO3 install, src+dummy.. Installed TemplaVoila, and 
mapped a simple template.

My FF developer toolbar gives me these info on http respons headers 
asking apache port:80

---
Date: Thu, 29 Sep 2011 20:51:37 GMT
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: PHP/5.3.2-1ubuntu4.9
Expires: 0
Cache-Control: private
Pragma: no-cache
Last-Modified: Thu, 29 Sep 2011 20:51:37 GMT
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 2005
Keep-Alive: timeout=15, max=92
Connection: Keep-Alive
Content-Type: text/html; charset=utf-8

200 OK
---

respons header asking varnish port: 81
---
Server: Apache/2.2.14 (Ubuntu)
X-Powered-By: PHP/5.3.2-1ubuntu4.9
Expires: 0
Cache-Control: private
Pragma: no-cache
Last-Modified: Thu, 29 Sep 2011 20:55:25 GMT
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Type: text/html; charset=utf-8
Content-Length: 2005
Accept-Ranges: bytes
Date: Thu, 29 Sep 2011 20:55:25 GMT
X-Varnish: 1714100756
Age: 0
Via: 1.1 varnish
Connection: keep-alive

200 OK

---

As far as i can see something went wrong and isn't cacheable.

I have done following in the backend to get the solution ready for 
varnish. From this articlke:
http://www.typo3-media.com/blog/website-caching-login.html

TS:

config.sendCacheHeaders = 1
config.cache_period = 3600
plugin.tx_felogin_pi1 = USER
[usergroup = *]
  	plugin.tx_felogin_pi1 = USER_INT
[global]

I've installed the mov_varnish extension.

My vernish config is like this: se default.vcl

Any hints on what i did wrong ? as told i'm totally new in this area, 
but hoping for some hints.

-- 
Best Regards
Tomas Norre Mikkelsen
T3 Skin Team Member
Follow me at twitter.com/tomasnorre
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: default.vcl
URL: <http://lists.typo3.org/pipermail/typo3-dev/attachments/20110929/8ad2bbfd/attachment.asc>


More information about the TYPO3-dev mailing list