Reputation: 534
I am developing a web application with CherryPy. I was checking Audits in Chrome browser and it told me to consider "turning of sending cookies with images, scripts and style sheets."
I googled for the topic but no joy. Here is my config:
...
...
...
'/static':
{
"tools.caching.on" : True,
"tools.caching.force" : True,
"tools.caching.delay" : 0,
"tools.expires.on" : True,
"tools.expires.secs" : 60*24*365,
"tools.gzip.on" : True,
"tools.gzip.mime_types": ['text/*', 'image/*', 'application/*'],
"tools.staticdir.on" : True,
"tools.staticdir.root": abspath(dirname(__file__)),
"tools.staticdir.dir" : "static"
},
...
...
To be clear, I don't want to inherit some custom classes. I want to use tools or setting some values above, at best. Any help is appreciated.
Upvotes: 3
Views: 802
Reputation: 534
Setting "tools.sessions.on": False
in the static dir config section has fixed the problem.
Upvotes: 2