HTTP requests with cookies on CSS, JS, and images – how to switch it off?

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
pale guru
Moonbather
Moonbather
Posts: 61
Joined: 2021-11-06, 11:10
Location: Tyskland

HTTP requests with cookies on CSS, JS, and images – how to switch it off?

Unread post by pale guru » 2022-01-27, 02:36

On some sites like the Clouflare 'intercepted' ones, cookies are set and then sent back by the browser (Pale Moon) on every request, even images, stylesheets and Javascript.

Some other sites set cookies, and Pale Moon only send cookies back on HTML pages.

How is this behavior set server-side, and is there any way to avoid sending cookies on image, CSS and JS requests, ie. in about:config?
… tanning in dimmed LCD light. – Evry 1′s a beginner, baby, that's the truth…

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: HTTP requests with cookies on CSS, JS, and images – how to switch it off?

Unread post by moonbat » 2022-01-27, 06:42

Use eMatrix, it blocks everything including sending cookies back, by default.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35473
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: HTTP requests with cookies on CSS, JS, and images – how to switch it off?

Unread post by Moonchild » 2022-01-27, 11:11

cookies are part of the HTTP transport protocol; that is unrelated to the type of content transferred. That is the way the http standard is, and is intended to be used.
If you start filtering cookies based on document type requested, be warned you may severely break some websites that use cookies for session authentication.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked