Short · 2:10 · Watch on YouTube ↗
Original video title

Cookies & Cache in Web Browsers#tech #sinhala #srilanka

English companion article · Published

Cookies help a site remember state

A cookie can support a login session, preferences or other information a site needs across requests. It is more accurate to think of session identifiers and state than to assume your password is simply stored in a cookie. This helps explain why a site may recognise you when you return.

Cache helps reuse downloaded resources

A browser cache can keep reusable resources such as images, scripts and styles so they do not need to be downloaded again every time. Clearing cached resources and clearing cookies can therefore have different effects. Removing cookies may sign you out or reset preferences; removing cached files may require them to be downloaded again. The original video introduces the topic, and the MDN reference below expands on cookies.

Further reading

← Explore all articles & videos