• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Issue Browser Caching dont working

Marcseeber

New Pleskian
i use this

gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml application/x-font-ttf font/opentype;
location ~* \.(jpg|png|gif|jpeg|css|js)$ {
Expires 1h;
add_header Pragma public;
add_header Cache-Control "public";
}

all Picture and css have error 500 Header
 
nginx: [emerg] "gzip" directive is duplicate in /etc/nginx/conf.d/gzip.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
________________________________________________________

#user nginx;
worker_processes 1;
#error_log /var/log/nginx/error.log;
#error_log /var/log/nginx/error.log notice;
#error_log /var/log/nginx/error.log info;
#pid /var/run/nginx.pid;
include /etc/nginx/modules.conf.d/*.conf;
events {
worker_connections 1024;
}

http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#tcp_nodelay on;
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
server_tokens off;
include /etc/nginx/conf.d/*.conf;
}
# override global parameters e.g. worker_rlimit_nofile
include /etc/nginx/*global_params;
 
Last edited:
gzip options can be duplicated in /etc/nginx/nginx.conf
Check it.
 
gzip on;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";

remove form the nginx.conf

and testet


nginx: [emerg] "worker_processes" directive is not allowed here in /etc/nginx/conf.d/gzip.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
 
Try to remove /etc/nginx/conf.d/gzip.conf and add necessary parameters for gzip directly to /etc/nginx/nginx.conf
 
http://www.metasearch.eu/?q=reisen

css and Picture don't working

http://www.metasearch.eu/php.PNG

error

http://www.seebi.net/php.PNG


remove this form .htaccess

all working

gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript image/svg+xml application/x-font-ttf font/opentype;

location ~* \.(jpg|png|gif|jpeg|css|js)$ {
Expires 1h;
add_header Pragma public;
add_header Cache-Control "public";
}


Browser Caching disable and not working
 
Last edited:
Back
Top