Most voted "cache" questions
Basically, the term cache can be understood as a storage area where frequently used data or processes are saved for faster future access, saving time and unnecessary use of your hardware.
Learn more…129 questions
Sort by count of
-
25
votes3
answers681
viewsWhat makes cache invalidation a difficult solution?
There’s a famous phrase: There are only two hard problems in Computer Science: cache invalidation and naming Things -- Phil Karlton So she says it’s hard to name things, which has a funny tone since…
-
21
votes5
answers27254
viewsClear browser caching with Javascript
Is it possible to clear the cache of Firefox and Chrome browsers via Javascript? With Internet Explorer I can, but not mentioned above. Dude, it didn’t work, I think the problem occurs because save…
-
16
votes1
answer776
viewsHTTP cache headers in Servlets
I would like to know if there are libraries or solutions to treat requests containing headers as Last-Modified, If-Modified-Since, If-Range (for download summary), If-None-Match, Cache-Control,…
-
16
votes3
answers5987
viewsSave browser cache or not?
Hello, I tried a site I’m doing in Google’s Pagespeed Insights, and it suggests "Take advantage of browser caching". I wanted to know if it is really necessary and advantageous to store files in…
-
14
votes3
answers4398
viewsHow to force load JS and CSS files with each new published version?
Every time I publish a new version of my web application (a multienterprise system) that has changes in JS and CSS files, some clients complain of errors and I end up finding that is the cache of…
-
12
votes2
answers189
viewsAre libraries downloaded multiple times?
I have an application that uses 3 libraries (Bootstrap, jQuery, jQueryUI) on 10 different pages. Browsers cache libraries?
-
11
votes1
answer323
viewsWhat are build cache structures?
In that question where I wanted to know if I should store settings in a global variable $GLOBALS, I got some very good answers, and there was one that talked about something that I hadn’t even…
-
9
votes1
answer677
viewsPHP works with cache?
I am noticing that my application is occurring some error, or else my browser is always storing cache, even if I perform the cleaning. I have a file .php and in it contain the function loadEvent,…
-
8
votes1
answer147
viewsShould license comments on CSS or Javascript files be maintained or not?
This question arises when I finalize a mechanism to realize a Bundle of CSS and JS files with consequent cache. In many projects we all use mechanisms that allow reducing the size of CSS and JS…
-
8
votes1
answer220
viewsWhat is cache in the context of the Web?
It’s often said, "Oh, that’s stored in cache..." Where the browser stores your cache, there is a limit size and has some relationship with the Local Storage`?…
-
7
votes1
answer581
viewsHow do I know if a resource is in the browser cache?
Is it possible to find out, via Javascript and without any additional HTTP request, whether or not a particular resource is in the browser cache? And if you are, get it too without that requisition?…
-
7
votes1
answer293
viewsHow do I prevent caching Ajax requests in IE 6?
I have the code below, to update a DIV on a page: var req; // FUNÇÃO BUSCA ROMANEIOS PARA EXIBIR NA TELA DE MENU. function buscarRomaneio() { // Verificando Browser if(window.XMLHttpRequest) { req =…
-
7
votes1
answer871
viewsHow to instruct your browser to cache my Javascript and CSS via web.config
I reviewed my new website on Google Pagespeed Insights, I made some fixes, and now I need to cache some files (CSS and JS) in the browser. I looked for some articles/questions in Stack Overflow but…
-
7
votes1
answer542
viewsDifference between Absolute Expiration and Sliding Expiration
I am doing a POC with generic cache in C# and followed a model that shows Absolute Expiration and Sliding Expiration. Some could explain these concepts better to me? //This is for Absolute…
-
6
votes2
answers6008
viewsHow do I make the browser not store image caching with HTML or PHP?
I am creating a web page that is practically only image, every day I change the images of the page but their name remains the same. The browser is storing a lot of cache and each time I update the…
-
6
votes1
answer432
viewsDoubt About Cache
I’m doing my site, and I want to try to reach 100/100 in Pagespeed Insights, I’ve activated my cache by. htacces, but the P.S.I says it’s still inactive, so I went to see the headers, and back that…
-
6
votes1
answer1689
viewsIs it recommended to use PHP caching? How to use?
PHP caching is basically a cache created from your site to prevent it from being wasted searching for data with each page request. When a user accesses a page, is saved a copy of it in HTML on the…
-
6
votes1
answer1292
viewsWhat are the disadvantages of using Redis?
There are many advantages to using Redis as a database, but we already know this. I would like to know what the disadvantages of using redis or in which scenarios would be very "against" using it.…
-
6
votes1
answer177
viewsWhen to use Memorycache?
I would like a real example, not necessarily a code, on when use the MemoryCache on Web systems. What types of situation ask for its use? A little context: I participated in an interview where they…
-
4
votes2
answers1064
viewsWhen to use cache system in PHP?
I’ve been reading a little about the use of PHP cache, its advantages and disadvantages. Some questions and etc. If I have a system that only shows updated texts (rewrites) of the same, very small,…
-
4
votes2
answers159
viewsdiv stops being updated in IE11
In a project I am developing I need to update some page fields each 50ms (this is adjustable). The problem is that when I test in IE, the fields are no longer updated overnight, with no explanation…
-
4
votes1
answer1547
viewsNGINX as reverse proxy and cache of an external shared server running apache
I’m trying to set up a Brazilian instance on Amazon to be reverse proxy with server caching and compression (I accept dashboard suggestions, preferably free, that accept this setting) in the US. The…
-
4
votes2
answers13199
viewsHow to force cache cleanup on my visitors' browsers
I usually update the style sheet of my site (CSS) a lot. What happens is that my visitors see no difference. Is there a script or something that forces cleaning? Example: On the next access the…
-
4
votes1
answer73
viewsCache control for a specific file
If we want to implement a cache control for a particular file type, through the htaccess we can proceed as follows: <IfModule mod_expires.c> ExpiresActive on ExpiresDefault "access plus 1…
-
4
votes2
answers466
viewsMulti Banks / Cache / Client Layer
We are studying ways to develop some features for a system, which will be in C# . Net. I’d like to hear opinions on how we can do this, if we can use some frameworks or something else. Access to…
-
4
votes5
answers6498
viewsClear Browser Cache after Version Upgrade
I have the following scenario: Each month we release new versions for our customers, and a lot of the time our customers call in saying that X functionality isn’t working the way it should. Because…
-
4
votes1
answer14830
viewsError 503 Backend fetch failed
Sometimes I get this error when I am developing some application in wordpress, someone knows tell me the reason???…
-
4
votes0
answers182
viewsChrome and Opera do not respect cache
Chrome and Opera (same engine as the first) does not respect headers Cache-control and Expires, I mean if it’s a link or interaction within the page works normally, this appears ahead: But if the…
-
3
votes3
answers255
viewsHow to clear the cache in Opera 12?
So, I am developing with focus on Opera 12, it has a very interesting debugger, similar to Chrome, but one thing that bothers me a lot is that refresh does not clean the browser cache, often close…
-
3
votes1
answer444
viewsHow does Html5 cache work?
I have a webapp and I would like it to have a cache so that I don’t keep accessing it all the time. My webapp constitutes an index.html that parses on other websites. So every time the webapp opens…
-
3
votes1
answer154
viewsWhat is the average cache time for static files?
What is the average cache expiration time for poorly updated static files? There are techniques or recommendations that can help me to determine the expiration time? An example would be:…
-
3
votes1
answer94
viewsRemote file cache with interval updates with PHP
I’m developing a news portal and I’m using a Weather forecast API. The problem is that every time people open the page, PHP downloads the JSON of the API, and this ends up interfering with the page…
-
3
votes1
answer132
viewsServer cache
I have a system that holds more than 2000 clients and it keeps increasing, and every time they do a search, they call mysql with more than 20,000 items (and this number also continues to increase),…
-
3
votes1
answer221
viewsDoubts about gzip compression on IIS servers
I have a question, I have accommodation in kinghost and before activating the support I would like to know if what happens is even a problem. what happens is that the static files (mainly in…
-
3
votes1
answer82
viewsIs it bad practice to cache an entire Model on IIS?
In an application I use sixteen times a code like var cliente = db.Clientes.Find(id); So that’s why I created a controller that returns me: [OutputCache(Duration = (10 * 60 * 60), VaryByParam =…
-
3
votes1
answer61
viewsHibernate Cache with select Count
Hello! I have a JPQL consultation, with count: public Long quantidadeFaturasAbertasAssinante(Integer idAssin){ return manager.createQuery("select count(f) from Fatura f where f.dataLiquidacao IS…
-
3
votes2
answers340
viewsCache on Web Systems
I have a web system using Ajax that is constantly updated. I need to implement a way to update the user cache of files. js and . css when these files are modified. I tried to solve it in two ways.…
-
3
votes3
answers4639
viewsHow to reload the browser (Chrome) without cache, in addition to disable cache?
Selecting "disable cache" is sometimes not enough for the browser not to search for javascript in the cache. Or even knowledge. Some time ago I used a way that showed the option to empty the cache…
-
3
votes1
answer56
viewsUser see current version of Jquery and CSS without cache
Every time I update the CSS and JQUERY from a website, I need to keep asking the customer to open the site in an anonymous window. Because his browser saves the old files and he can’t see the…
-
3
votes1
answer74
viewsHow does CPU cache performance work?
Recently I discovered that it is possible to get a huge performance when using the CPU cache. An example I saw was a program that reduced its runtime from 10 seconds to 200 milliseconds just using…
-
3
votes1
answer62
viewsHow long does Developer lru_cache live?
I’m developing a Python script that needs to memorize the information (possibly a cache) of previous instances and I ended up finding the developer @functools.lru_cache, but I was left with doubts…
-
3
votes1
answer209
viewsDoes the operating system automatically cache PWA application icons?
I’m creating a PWA and one of the questions I have is if I need to cache all the icons that are in the manifest. Use a generator, to create all icons of different sizes and other files, the result…
-
2
votes2
answers522
viewsHow to disable Godaddy server cache?
I’m having a problem with server caching on Godaddy. I don’t know if this is with all Godaddy clients with a shared server or just my account. I happen to make changes to a file and upload, but the…
-
2
votes0
answers88
viewscaches_page in Rails 3 does not work in production
In development the caches_page works normally, but in production, it creates the cache and rewrites the cache at each access. Does anyone have any idea how this problem can be solved? My…
-
2
votes4
answers357
viewsObjectcache to provide a variable for all users
I have an application in ASP.NET and would like to cache for all users as if the variable was in pool application and everyone had access, something other than the session that makes the section…
-
2
votes1
answer178
viewsAlternative Methods for Application Server Storage
Good Afternoon Staff, I would like some suggestions for alternative ways of accessing data on an application server, more specifically a Jboss 6. It happened that I have an application hosted in a…
-
2
votes2
answers196
viewsDoubt cache Asp.net MVC
I have the following scenario: Public ActionResult ProdutoFornecedor01() { var produtos = _db.Produtos.Include(x => x.Fornecedor).OrderByDescending(x => x.ProdutoId).Where(x =>…
-
2
votes0
answers254
viewsCache: How to use mod_headers
I have a server Nginx in a shared environment where it is not possible to enable the max-age because the same is part of the mod_expires, in which it is only available in a dedicated environment. I…
-
2
votes1
answer40
viewsPage cache is not expiring
I am using the caches_page in a controller in my application in Rails 4. caches_page :index, expires_in: 10.minutes I need to have this controller run again after 10 minutes and generate a new page.…
-
2
votes1
answer169
viewsIs outputcache only valid at controller level?
I’ve been reading the article: http://www.asp.net/mvc/overview/older-versions-1/controllers-and-routing/improving-performance-with-output-caching-cs And I started using the: [OutputCache(Duration =…