How to delete the cookie of Baidu statistics to resource files

the domain name of the website is www.example.com , and the static resource JS,CSS, images are listed in js.example.com , css.example.com , and img.example.com . Baidu statistics is installed on the website, and it is found that the domain name of static resources also has an occasional cookie, of Baidu statistics. I would like to ask how to delete the Cookie? for static resources
this is how I set it on the nginx server:
CSS:

server {
  listen 443 ssl http2;
  server_name css.example.com;
  access_log off;
  index index.html index.htm index.php;
  root /alidata1/web/css.example.com/css;
  ssl on;
  ssl_stapling on;
   ...
    location ~ .*\.(js|css)?$ {
    expires 360d;
add_header Set-Cookie "UM_distinctid=deleted;expires=Thu, 01 Jan 1970 00:00:00 GMT"; 
add_header Set-Cookie "Hm_lpvt_6188cc7a9315dbe7155a5b2c9ecceasdas03=deleted;expires=Thu, 01 Jan 1970 00:00:00 GMT"; 
add_header Set-Cookie "Hm_lvt_6188cc7a9315dbe7155a5b2c9ecceasdas03=deleted;expires=Thu, 01 Jan 1970 00:00:00 GMT"; 
    add_header Cache-Control max-age=31104000;
    access_log off;
  }

JS:

server {
  listen 443 ssl http2;
  server_name js.example.com;
  access_log off;
  index index.html index.htm index.php;
  root /alidata1/web/js.example.com/js;
  ssl on;
  ssl_stapling on;
   ...
    location ~ .*\.(js|css)?$ {
    expires 360d;
add_header Set-Cookie "UM_distinctid=deleted;expires=Thu, 01 Jan 1970 00:00:00 GMT"; 
add_header Set-Cookie "Hm_lpvt_6188cc7a9315dbe7155a5b2c9ecceasdas03=deleted;expires=Thu, 01 Jan 1970 00:00:00 GMT"; 
add_header Set-Cookie "Hm_lvt_6188cc7a9315dbe7155a5b2c9ecceasdas03=deleted;expires=Thu, 01 Jan 1970 00:00:00 GMT"; 
    add_header Cache-Control max-age=31104000;
    access_log off;
  }

img:

server {
  listen 443 ssl http2;
  server_name img.example.com;
  access_log off;
  index index.html index.htm index.php;
  root /alidata1/web/img.example.com/img;
  ssl on;
  ssl_stapling on;
   ...
   location ~ .*\.(webm|webp|gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {
    expires 360d;
add_header Set-Cookie "UM_distinctid=deleted;expires=Thu, 01 Jan 1970 00:00:00 GMT"; 
add_header Set-Cookie "Hm_lpvt_6188cc7a9315dbe7155a5b2c9ecceasdas03=deleted;expires=Thu, 01 Jan 1970 00:00:00 GMT"; 
add_header Set-Cookie "Hm_lvt_6188cc7a9315dbe7155a5b2c9ecceasdas03=deleted;expires=Thu, 01 Jan 1970 00:00:00 GMT"; 
    add_header Cache-Control max-age=31104000;
    access_log off;
  }

found no effect

Mar.02,2021
  • Nginx reverse proxy cookie set cannot be obtained!

    external network access domain name: https: api.baidu.com internal network domain name: http: local.baidu.com this domain name is inaccessible outside the network! It is 127.0.0.1 pointed to by a private network address. I use nginx reverse proxy ...

    Feb.26,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e448f8-44ac5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e448f8-44ac5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?