---
title: "Specify a cache validator"
url: "https://www.typo3.net/d/104730-specify-a-cache-validator"
source: "typo3.net"
tags: ["Allgemein","Frage"]
created: "2011-04-01"
last_reply: "2011-04-02"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Specify a cache validator

Allgemein · 1 Antwort · gestartet 2011-04-01

## Eröffnungsbeitrag

**lil-trick** · 2011-04-01 · [Beitrag #1](https://www.typo3.net/d/104730-specify-a-cache-validator/1)

Hallo,

ich hab meine Seite mal durch Google <http://pagespeed.googlelabs.com> gejagt.

Jetzt sagt er mir

Specify a cache validator
The following resources are missing a cache validator. Resources that do not specify a cache validator cannot be refreshed efficiently. Specify a Last-Modified or ETag header to enable cache validation for the following resources: -> hier kommen dann meine ganzen Bilder

wie kann ich das einstellen?

## Antworten

### [#2](https://www.typo3.net/d/104730-specify-a-cache-validator/2) · skydivematy · 2011-04-02

Hi lil trick,
wie sieht denn deine .htaccess aus?
Da fehlen wahrscheinlich ein paar Einträge.

schau mal ob du sowas verwendest:

```typoscript
### End: Rewrite stuff ###

# Expires Header + Removal of ETag
<FilesMatch "\.(bmp|css|flv|gif|ico|jpg|jpeg|js|pdf|png|svg|swf|tif|tiff)$">
	<IfModule mod_expires.c>
 ExpiresActive on
 ExpiresDefault "access plus 24 hours"
 ExpiresByType image/x-icon "access plus 1 months"
 ExpiresByType image/jpg "access plus 1 months"
 ExpiresByType image/gif "access plus 1 months"
 ExpiresByType image/jpeg "access plus 1 months"
 ExpiresByType image/png "access plus 1 months"
 ExpiresByType image/ico "access plus 1 months"
 ExpiresByType text/css "access plus 1 months"
 ExpiresByType text/javascript "access plus 1 months"
 ExpiresByType application/javascript "access plus 1 months"
 ExpiresByType application/x-shockwave-flash "access plus 1 months"
</IfModule>
	
	<IfModule mod_deflate.c>
 Header append Vary User-Agent env=!dont-vary
</IfModule>


	# ETag
	FileETag MTime Size
	<IfModule mod_headers.c>
 FileETag MTime Size
</IfModule>
</FilesMatch>

# Compressed Content
<FilesMatch "\.gz\.(js|css)">
	<IfModule mod_headers.c>
		Header set Content-Encoding gzip
	</IfModule>
</FilesMatch>

<IfModule mod_headers.c>
Header append Vary Accept-Encoding
</IfModule>
```

ergibt 96/100 in verbindung mit scriptmerger

gruss
maty

---

Quelle: „Specify a cache validator“, typo3.net, https://www.typo3.net/d/104730-specify-a-cache-validator
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
