Menu
  • HOME
  • TAGS

How to use JavaScript to flush the memory of the browser to hide it from memory reading tools esp WinHex?

javascript,memory,browser-cache

The best solution would be to use salted hashing technique. This technique ensures that even if someone reads the memory the password is not visible in clear text. Also, it is impossible to retrieve the password as the attacker would require the salt that was used to hash the password...

I load a php script using Jquery and it loads a cached result. How to solve?

php,caching,mysqli,browser-cache

How about add a timestamp to your get url. like get/this/url.php?timestamp=2345232423 This way it should not cache it.

Should I bundle a javascript framework with my application or use a public CDN?

javascript,caching,browser-cache,performance-testing,cdn

I would say the answer is...it depends. I appreciate that isn't very useful so I'll expand. If you're writing an internal (intranet) application it would be better, and more efficient, to bundle the framework into your app. Your users will then only need to pull files from the local network....

Why does the web server sent the file instead of a 304 http: not modified?

apache,http-headers,browser-cache

It is bug in Apache. Turn off mod_deflate.

Disable WebBrowser caching

vb.net,webbrowser-control,browser-cache,flash-player,navigateurl

.NET WebBrowserControl doesn't have overload what accept int or long argument. So, you can't set BrowserNavConstants (this for IWebBrowser2 not .NET WebBrowserControl) value to .NET WebBrowserControl. I found following page: http://msdn.microsoft.com/en-us/library/40x214wa%28v=vs.110%29.aspx The WebBrowser control stores Web pages from recently visited sites in a cache on the local hard disk. Each...

Why directive templates sometimes are loaded from server (with 304 response) and sometimes from browser cache (no request at all)?

javascript,angularjs,angularjs-directive,browser-cache

It seems that in the response headers for templates there are no Cache-Control headers. In such case a browser will use a heuristic to decide for how long a response can be cached. To solve your problem of having always fresh templates fetched in development. You can: check "Disable cache"...

CodeIgniter session issue after sign out browser back button landed to the secured page

php,codeigniter,session,browser-cache

Include these headers in the constructor function of the controller to prevent the caching of previous page If you want the Code Igniter's way of doing it include the below code $this->output->set_header('Last-Modified:'.gmdate('D, d M Y H:i:s').'GMT'); $this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate'); $this->output->set_header('Cache-Control: post-check=0, pre-check=0',false); $this->output->set_header('Pragma: no-cache'); PHP's way of doing it...

How to enable browser cache for images, css and js files separately in web.config?

asp.net,iis-7.5,browser-cache

Duplicate of this question: How to configure static content cache per folder and extension in IIS7? (In the web.config you can set expiry by folder or individual file name, but not by file extension, but if you place the various file types each in their own folder, e.g. \images \css...

Cache strategy for ServiceWorker

javascript,browser-cache,service-worker

You may get familiar with great Jeff Posnick's solution - sw-precache. Strategy used there is: Gulp is generating Service Worker file with checksums Service Worker is registered (with his own checksum) If files were added/updated, the SW file changes With next visit, SW checks that its checksum differs, so it...

AJAX HttpRequest doesn't recieve updated data from servlet

ajax,http,servlets,browser-cache

Nevermind what I said before...your code is synchronous because you set async to false. Your issue is just browser caching. Your ajax request is being cached. You can trick the browser to not load the cache by adding a parameter with the date/time to the request like: var d =...

Cache combined javascript files individually

javascript,http,caching,cross-browser,browser-cache

Yes, Angular does something similar in fact. The trick is to cache at a different level and not the HTTP protocol level. You cache it yourself caching to localStorage or indexeddb. Create a cache object, and whenever you add a file, put it there // a.js, this file generated by...

What is the relationship between http cache in brower and http status 304?

c#,browser-cache

Depending on the server response to the first request to aaa.js the browser may or may not request the file again the second time. If no specific caching headers are sent by the server with the file, on the second page load the browser will send a request for aaa.js...

Automatic cache-busting for static builds that works well with npm run?

node.js,caching,jade,browser-cache

Since Jade allows executing any piece of Javascript code you can append a datestring at the end of your URL as a query string which is the standard way of invalidating cached scripts: script(src="/app.js?#{Date.now()}") ...

When I update my news my image is not updating correctly (using tim.php to generate thumbnails)

php,browser-cache,timthumb

Long ago I solved such a problem by doing something like this: echo '<img src="../tim.php?src=../uploads/images/'.$result['thumb'].'&w=50&h=45&q=100&zc=1&"'. rand(99,9999) .'/>'; ...

Leverage browser caching issue with already cached content

php,caching,browser-cache,amazon-cloudfront,google-pagespeed

The configuration you specify here controls how CloudFront caches objects, not how they are cached by browser. You still need to send Cache-Control header from origin to control browser caching.

Caching in General and in MVC in Particular

jquery,ajax,asp.net-mvc,caching,browser-cache

Your ajax request will always hit the server, because you are using a POST request. Change it to GET to see the difference. [RFC 2616 in section 9.1 (POST)] http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1...

JQuery .Load(), does it cache the document?

javascript,jquery,browser-cache

No, jQuery.fn.load will NOT cache the response. However, the browser might cache it depending on what headers were passed with the response, and possibly the size of the response if the browser being used has limits on the size of the response for caching.

Cache doesn't work, images are reloaded each time

php,html,google-chrome,browser-cache

These are your return headers... you are explicitly telling the browsers to not cache. This will be an apache (web server) setting. Accept-Ranges:bytes Accept-Ranges:bytes Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Connection:keep-alive Content-Length:4026 Content-Type:image/png Date:Tue, 03 Feb 2015 14:33:44 GMT Pragma:no-cache Server:Apache Set-Cookie:300gp=R3396092545; path=/; expires=Tue, 03-Feb-2015 15:46:10 GMT X-Cacheable:Not cacheable: no-cache X-Geo:varn34.rbx5...

Why views are same when I run main.go again

web,go,browser-cache

You are rendering your templates only once as templates is a global variable. To re-render your templates each time you can move the rendering to your function. This however is bad for performance as rendering is quite expensive but it's ok during development. As an alternative you can for example...

Use of MANIFEST.MF file under META-INF folder

tomcat,java-ee,browser-cache,sapui5,web-development-server

When using the Application Cache Buster mechanism, the first request must never be cached because it is being used to fetch the index file. The following list explains the flow http://myserver/myapp/sap-ui-cachebuster-info.json ⇒ NO_CACHE http://myserver/myapp/~201106210204~/mvc/MyMVC.view.js ⇒ CACHE http://myserver/myapp/mvc/MyMVC.view.js ⇒ internally resolve to this URL you can find more information in Developer...

Getting latest Json from Apache2 server with AngularJS

javascript,json,angularjs,apache2,browser-cache

I solved with @TechM9iac answer to this post. As him said: the solution would be to add query strings representing timestamp or session id to your files. So I'm able to get ALWAYS the fresh jsons by adding ?r=<%= session.getId()% in my $http.get() call, like: myApp.controller("myController", ["$scope", "$http", function($scope,$http){ $http.get('http://localhost/myjson.json...

Cache video background

performance,css3,caching,browser-cache

I work at Rentmoola and I can tell you the video is not cached, a call is made to the server each time the video loops, and the video should stop playing if the Wifi is disconnected. Videos probably should not be stored in your cache because of their size.

Django - Javascript - Disable cache on image refresh

javascript,ajax,django,image,browser-cache

As @yedpodtrzitko pointed out, adjusting the cache headers of the web page in Django is pointless. This part looks wrong: $.get('{{ MEDIA_URL }}{{ data_to_modify.thumbnail.name }}?cachebuster='+Math.floor(Math.random()*100 +1), function(data) { {{ MEDIA_URL }}{{ data_to_modify.thumbnail.name }} is the url of of the image you want to display right? (you use the same url...

How to stop chrome from searching when manually typing in local dev addresses

html,google-chrome,cookies,jekyll,browser-cache

Apparently chrome no longer likes the use of 0.0.0.0. Use 127.0.0.1 instead. See discussion on the subject here https://github.com/jekyll/jekyll/issues/3048...

How to make browser ignore cached data and reload it

javascript,caching,browser-cache

Let say your file is <script src = "javascript-code.js"></script>, if you edit it and would like the have it automatically reload on all the other client browsers you can rename it <script src = "javascript-code.js?rnd=123"></script>. Changing the value in the query string will force the browsers which cached the JS...

Using Browserify with a revision manifest in Gulp, getting “Error: write after end”

gulp,browser-cache,browserify,react-jsx

Well, I have solution that satisfies my requirements, but it isn't perfect. Let Browserify start the stream from a file name, instead of using gulp.src Use vinyl-source-stream to transform Browserify's Node stream to a Gulp stream, before passing the data on to other gulp plugins I am also using gulp-rev...

Run batch file on a remote computer as the logged on user

batch-file,powershell,browser-cache,psexec

It's incredibly difficult to impersonate a user without knowing their password (imagine the security implications!). In my experience it's easier to run it as either a logon or logoff script using group policy.

How to refresh the page's cache if scripts have been updated?

javascript,php,css,html5,browser-cache

My answer involves a php script that checks selected files on the server for modification date. on the html page, javascript gets the data from php via jQuery getJSON. Then it checks for localstorage data regarding the files, this data is first stored if none found via html5 localstorage. Then...

what is the best way to upload images to server? save in database or in server folder?

asp.net,browser-cache

Why not both? You can save path reference in database (along some other useful information about the image such as tags, size, etc.). Then you can have a controller for your images (update / search / delete) and use . If you do so, images are still cached by browser...

Where does the browser store user input data?

browser,browser-cache

They are stored in the DOM. HTML is parsed and stored as data. This data is rendered into what we see in our browser. This data can be accessed and changed using Javascript as well as through interaction with the website (ie. checking boxes, entering text). WHY YOU DON'T SEE...

Full Page Cache in CakePHP

cakephp,caching,browser-cache

From you question i understand that you need navigate to some other page without refreshing the page as like google. But its not done using cache. There are function called pushState() and onpopstate() to make this. How it will work? With the function pushState(), we can able to change the...

Asp.Net - ClientCache - can it vary by file type?

asp.net,caching,iis,web-config,browser-cache

You can use the location path to limit the cache to a folder or even down to a specific file. Not sure if you could do something like *.pdf. Possible option here: Can I use wildcards in the web.config location path attribute? <location path="images"> <system.webServer> <staticContent> <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" />...

Why is my web app crashing after multiple GET requests?

javascript,jquery,python,server,browser-cache

Don't trigger the next request until after you've processed the previous one, to prevent a large backlog from building up. function pollInputs(){ $('#hiddenDataDiv').load(document.URL + " #hiddenDataDiv", function(result) { if (numberOfDivs > 0){ for (i = 0; i < numberOfDivs; i++) { radioResult[i] = $('#data'+i).text(); } } setTimeout('pollInputs()', 1000); }); if...

Caching in Webview is not working in Android

android,caching,webview,browser-cache,offline-caching

You are not able to cache documents from docs.google.com like this. The server can send a cache-control header as response to any request to set rules for the client about caching. As these documents from docs.google.com are never static, the response contains the instruction to don't cache your document. cache-control:no-cache,...

Add UrlArgs to reuire-js main file

javascript,requirejs,browser-cache

Yes, here you call require before the script is loaded. In your js/main module, you can for example : requirejs.config({ urlArgs : "v=1.1" }); require(['dep'], function(dep){ }); Or better separate the config into a dedicated module (as in this sample project ) UPDATE: If you want the parameters to be...

Google Chrome fetches HTML files from cache when cache manifest is present

google-chrome,caching,browser-cache,cache-control

This behavior has been fixed in Chrome 41.0.2272.76 m. It no longer fetches files from cache for my site with the manifest file.

How to remove/replace cached css and js file from client Browser?

javascript,css,browser,browser-cache

Yes, give it a version number of sorts. For example, client is on your site and loads: http://path/to/cssFile.css If you change this and add a version number, when they visit again they will download it again, e.g. http://path/to/cssFile.css?version=1.001 ...

How to prevent browsers from remembering last logged user?

browser,user,browser-cache,autofill

Another developer was dynamically adding in the last logged email into the email field in a php file I did not have access to. -_-

Which headers allow a browser to reuse a file from cache without contacting the server at all?

http,browser-cache,cache-control,http-caching

See RFC 7234: Hypertext Transfer Protocol (HTTP/1.1): Caching, section 4.2. Freshness: A fresh response is one whose age has not yet exceeded its freshness lifetime. Conversely, a stale response is one where it has. A response's freshness lifetime is the length of time between its generation by the origin server...

PHP - Weird page refresh issue

php,browser-cache

First off, session_destroy() on its own is not enough to destroy the session data, see How can I clear my php session data correctly? From: http://stackoverflow.com/a/6472150/3536236 After using session_destroy(), the session cookie is removed and the session is no longer stored on the server. The values in $_SESSION may still...

Website html doesnt update for users because of cache

html,caching,browser-cache

What are the resources that are being cached? I suspect js/css files, a good way to handle this is to add a query param with a version to the path of those resources in order to force the browser to load the new file if the version changed, something like...

Does phantomjs regularly clear its cache automatically?

phantomjs,browser-cache

Each PhantomJS process has its own in-memory cache, so there is no need to clear it between script executions. You can let PhantomJS save the cache in disk, so that it persists accross executions. See the --disk-cache option. There is no way to clear the cache during a script execution....