简体   繁体   English

使我的网站不留下Cookie

[英]Making my website NOT leave cookies

I've done some research and all I can seem to find are ways to make a tracking cookie, and the closest I can find is here: Remove cookie upon leaving the webpage . 我已经进行了一些研究,似乎能找到制作跟踪cookie的方法,而我能找到的最接近的方法是: 离开网页后删除cookie Now, this'll work, but I was hoping for a method that would kind of pre-empt the issue. 现在,这将起作用,但是我希望有一种可以提前解决此问题的方法。
Is there any way to tell your website to not leave a cookie, whether through javascript or some other method? 是否可以通过JavaScript或其他方法告诉您的网站不要留下Cookie?

Ps. 附言 My biggest reason for doing this is when I'm editing my website, I'm reloading the page over and over and over again, and oftentimes it stores the content for a little while and I have to open a new browser/go to another computer to see my new content. 我这样做的最大原因是,当我编辑网站时,我一次又一次地重新加载页面,并且经常将页面存储内容一会儿,我必须打开新的浏览器/转到另一个浏览器。电脑上查看我的新内容。

Thanks! 谢谢!

Websites don't procure cookies from the air. 网站不会从空中获取Cookie。 They only leave cookies if you specifically program them to do that, so whatever code you're using to set the cookie, just don't do that. 如果您专门对它们进行编程,它们只会留下cookie,因此无论您使用什么代码来设置cookie,都不要这样做。


Are you possibly talking about the cache instead? 您可能在谈论缓存吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM