CentBrowser Forum
New option in the settings: "Cache-Control" - Printable Version

+- CentBrowser Forum (https://www.centbrowser.net/en)
+-- Forum: Product Related (https://www.centbrowser.net/en/forumdisplay.php?fid=1)
+--- Forum: Bugs & Suggestions (https://www.centbrowser.net/en/forumdisplay.php?fid=4)
+--- Thread: New option in the settings: "Cache-Control" (/showthread.php?tid=2806)



New option in the settings: "Cache-Control" - Zebra - 05-27-2019

Suggest to add to the settings the new option (switch): "Cache-Control"

When ON:   prohibits refresh the web-page when you click on the "Back" button (ignore the "no-store/no-cache" instructions and loads content from cache);
When OFF:  regular behavior;

-------------------------------------------
In the current build I manually edit files chrome.dll/chrome_child.dll to achieve effect.


RE: New option in the settings: "Cache-Control" - Admini - 05-27-2019

Are you familiar with JavaScript?
This should better be implemented by chrome extension.
You can filter network response headers and remove Cache-Control: no-cache


RE: New option in the settings: "Cache-Control" - Zebra - 05-27-2019

(05-27-2019, 03:02 PM)CentBrowser Wrote: Are you familiar with JavaScript?
This should better be implemented by chrome extension.
You can filter network response headers and remove Cache-Control: no-cache

Not. I do not know how to make chrome extensions.
And I do not know an any extension that is suitable for this.


RE: New option in the settings: "Cache-Control" - Admini - 05-27-2019

(05-27-2019, 03:12 PM)Zebra Wrote: Not. I do not know how to make chrome extensions.
And I do not know an any extension that is suitable for this.

Please check these links:
https://chrome.google.com/webstore/detail/modheader/idgpnmonknjnojddfkpgkljpfnnfcklj
https://blog.thamaraiselvam.com/intercept-and-modify-headers-of-requests-chrome-extension-2d6333a5ec8d
https://github.com/google/tamperchrome
https://www.reddit.com/r/chrome/comments/5u53t9/modify_response_headers_in_chrome/


RE: New option in the settings: "Cache-Control" - Zebra - 05-27-2019

(05-27-2019, 03:16 PM)CentBrowser Wrote: Please check these links:
https://chrome.google.com/webstore/detail/modheader/idgpnmonknjnojddfkpgkljpfnnfcklj
https://blog.thamaraiselvam.com/intercept-and-modify-headers-of-requests-chrome-extension-2d6333a5ec8d
https://github.com/google/tamperchrome
https://www.reddit.com/r/chrome/comments/5u53t9/modify_response_headers_in_chrome/

wow! Thanks a lot!


RE: New option in the settings: "Cache-Control" - Zebra - 05-27-2019

I tried the ModHeader extension, but don`t achieve the result Sad

I set in Profile1:
[Image: ad779c2c118bcc26405eb89c2d148cf65bd2e4341635794.png]

May be I need another settings? (what exactly?)

And I tried set:
[Image: 222.png]
No avail Sad


RE: New option in the settings: "Cache-Control" - Admini - 05-28-2019

(05-27-2019, 05:03 PM)Zebra Wrote: I tried the ModHeader extension, but don`t achieve the result Sad

I set in Profile1:
[Image: ad779c2c118bcc26405eb89c2d148cf65bd2e4341635794.png]

May be I need another settings? (what exactly?)

And I tried set:
[Image: 222.png]
No avail Sad

Your usage should be working normally.
But seems this extension doesn't work in some websites.
Besides "Cache-Control", there are other headers used for cache validation.
So the situation may be complicated.
Maybe you need offline mode?
https://www.wikihow.com/Work-Offline-on-Chrome
https://chrome.google.com/webstore/detail/work-offline/gcjdagaoojgeilcobhibkgbodajcojda


RE: New option in the settings: "Cache-Control" - Zebra - 05-28-2019

I tried all available "headers" extensions from ChromeStore -- no one can manage Response Headers values Sad

The flag chrome://flags/#show-saved-copy (and extension "Work Offline" or something like that) can`t help due to the fact that the Response Headers has the cache-control: no-store  --- the Cent don`t save content to the cache in accordance with the "no-store".

I think there is only one good way: embed a function in the browser code to ignore the Cache-Control response header.


RE: New option in the settings: "Cache-Control" - Admini - 05-30-2019

(05-28-2019, 06:21 PM)Zebra Wrote: I tried all available "headers" extensions from ChromeStore -- no one can manage Response Headers values Sad

The flag chrome://flags/#show-saved-copy (and extension "Work Offline" or something like that) can`t help due to the fact that the Response Headers has the cache-control: no-store  --- the Cent don`t save content to the cache in accordance with the "no-store".

I think there is only one good way: embed a function in the browser code to ignore the Cache-Control response header.

May I know why you need this feature?
To save bandwidth?


RE: New option in the settings: "Cache-Control" - Zebra - 05-30-2019

(05-30-2019, 12:14 PM)CentBrowser Wrote: May I know why you need this feature?
To save bandwidth?

1. I want to save my time at navigation on the website by "Back-Forward" buttons.
2. After I push "Back" to return I want to see exactly the same version of page like one was, not new.