3
온라인 상점 (Shopware)을 GooglePageSpeed과 같이 분석하면 "만료가 지정되지 않았습니다."- 모든 이미지에 선이 생깁니다. 나는 웹 서버 (의 nginx는) 추가하기 때문에에 대해 궁금Google 페이지 속도를 해결하는 방법 : "만료가 지정되지 않았습니다"
마지막으로 수정 두 번째 요청에 예상 (304) - 응답의 결과로 -Timestamps 및 헤더 모든 이미지의 응답에 ETAG을, .
는 ETAG/Google 페이지 속도를 지원하지 LASTMODIFIED 있습니까?나는 nginx를 구성의 해당 부분 제공합니다 :
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
expires 1M;
access_log off;
add_header Cache-Control "public";
}
## All static files will be served directly.
location ~* ^.+\.(?:css|cur|js|jpe?g|gif|ico|png|html|xml)$ {
## Defining rewrite rules
rewrite files/documents/.* /engine last;
rewrite backend/media/(.*) /media/$1 last;
expires 1w;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
access_log off;
# The directive enables or disables messages in error_log about files not found on disk.
log_not_found off;
tcp_nodelay off;
## Set the OS file cache.
open_file_cache max=3000 inactive=120s;
open_file_cache_valid 45s;
open_file_cache_min_uses 2;
open_file_cache_errors off;
## Fallback to shopware
## comment in if needed
#try_files $uri @shopware;
}
잘못되었거나 누락이 anythong인가를?
이 질문에 대한 답변은 어디까지입니까? – JCats
우리는 vhost-config에 또 다른 expire-statement가 있음을 알았습니다. 문제를 해결 한 한 가지 진술로 줄이십시오. – itinance