Clear Cookies for a site in Chrome Extension

55 views
Skip to first unread message

Anuj Dev

unread,
Mar 9, 2015, 2:51:31 PM3/9/15
to chromium-...@chromium.org
Hi,

I am creating a Chrome Extension that loads a static page inside of an Iframe placed into the popup.html page for the extension.

I want to make sure that every time the extension icon is clicked, the newest version of that static page is loaded into the frame and not the browser cached version of that page is loaded so that the user gets to see the currently updated page (Static page gets updated every approx 30 Mins).

So, is there any way that can be implemented in Manifest.json or anywhere else to make sure to bring the latest version of page from server and not the cached one is loaded in my extension every time the users visit the extension icon.


Any help is widely appreciated!!

Naveen

unread,
Mar 9, 2015, 8:36:36 PM3/9/15
to Anuj Dev, Chromium-extensions
Hi,
I believe you need to add cache control directives to your HTML file.

<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />

Hope that helps.

Thanks,
Naveen
> --
> You received this message because you are subscribed to the Google Groups
> "Chromium-extensions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to chromium-extens...@chromium.org.
> To post to this group, send email to chromium-...@chromium.org.
> Visit this group at
> http://groups.google.com/a/chromium.org/group/chromium-extensions/.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/9f8ea6df-2d08-404a-9cb5-6ca20f2b9e8e%40chromium.org.
> For more options, visit https://groups.google.com/a/chromium.org/d/optout.
Reply all
Reply to author
Forward
0 new messages