GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.developer.amazon.com — HTTP Caching (Fire Tablets) | Fire Tablets
HTTP Caching (Fire Tablets)If your web app deals with any personally identifiable consumer information or any other sensitive information it is important to consider the implications of the browser cache. Note: Development materials and tools referenced on this page are provided by third parties, not by Amazon. Our links for these tools will take you to third-party sites.
General Best PracticesWhenever information is sent from server to a browser the default behavior is to cache the response to speed up access in the future. While speed is important, security is paramount. Cached information can be stored persistently by the browser on the device making it vulnerable if the device becomes compromised; a malicious app may gain access to the cached data. In most cases assets like static graphics are safe for the browser to cache. As a best practice, you should not cache any information secured behind a login. This can lead to information being inadvertently available to malicious apps. To ensure that responses from the web server are not stored persistently by the browser (either the native browser or webview) add the following header to HTTP(s) responses that are being returned.
Or
Further information can be found in section 14.9 of the HTTP specification. For backwards compatibility, a no cache pragma should be included as well.
Additional information can be found in section 14.32 of the HTTP specification. Instructions for including these headers with the response should be in either your web server documentation or the programming framework that you are using to code your app. Cookies and SecurityIf you are using SSL to protect the security of the communication between you and your users, it is also important to ensure that cookies you are storing cannot be used in unintended ways. For instance if you are saving a login token in a cookie, you should mark that cookie as Secure. Similarly, if a server is sending a cookie that should not be accessible to JavaScript that is running on the page it should be marked as HttpOnly, preventing certain classes of cross-site scripting attacks. (Note: HttpOnly Cookies are part of the HTML5 specification.) Further information on secure cookies can be found in the HTTP specification for state management. The HTTP only cookies are a work-in-progress in the HTML5 specification. Amazon Web App Cache APIsIf your web app is distributed by Amazon, you can clear the cache of the embedded browser by using an available API. For example, when a user logs out of your app, you can force any saved data to be purged from the device. While this is not a substitute for not caching critical information in the first place, it can be a useful tool to ensure that you are doing everything possible to preserve a customer’s trust by securing their data. The Amazon Web App Cache ObjectBefore calling any of the Amazon Web App Cache APIs it is important to check that the object exists. This will ensure proper functionality if your apps run without a wrapper. Any calls to the Amazon Web App Cache object will only affect the wrapped app. Other web apps and the native browser will be unaffected. Amazon Web App Cache methods are as follows:
Last updated: Oct 29, 2020 Supported devices |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |