CMS/프레임워크 | XE 1.x |
---|---|
개발 언어 | PHP 7.2 |
테스트를 좀 하다가 이상한 것을 발견했습니다.
min.js 의 경우 브라우저캐시가 서버정책에 맞지 않게 ttl이 0으로 잡히는 듯 합니다.
코어에서 강제하는 부분이 있나요??
주로 common 에 있는 스크립트들인데요. 물론 다른 서드파티의 경우도 그렇습니다.
CMS/프레임워크 | XE 1.x |
---|---|
개발 언어 | PHP 7.2 |
테스트를 좀 하다가 이상한 것을 발견했습니다.
min.js 의 경우 브라우저캐시가 서버정책에 맞지 않게 ttl이 0으로 잡히는 듯 합니다.
코어에서 강제하는 부분이 있나요??
주로 common 에 있는 스크립트들인데요. 물론 다른 서드파티의 경우도 그렇습니다.
댓글 8
어딘가에 포함된 htaccess 파일을 통해서 바뀌는것도 가능할텐데요..
min.js파일이 캐시가 안되네요
location /files {
expires 95d;
log_not_found off;
}
include snippets/block-bots.conf;
include snippets/block-other.conf;
include snippets/well-known.conf;
include snippets/xe-rewrite.conf;
location ~ \.php$ {
fastcgi_pass unix:/run/php-fpm/clubsound.sock;
include snippets/fastcgi-php.conf;
#limit_req zone=antiddos burst=10 nodelay;
}
location ~* \.(jpe?g|png|gif|bmp|ico|svg|woff|ttf|s?css|less|js)$ {
expires 95d;
log_not_found off;
}
location ~* \.(mp[34]|wav|flv|avi|m4a|ogg|flac|mov|MOV)$ {
expires 95d;
log_not_found off;
#limit_conn addrconn 3;
limit_rate_after 500k;
limit_rate 10m;
}