Questions tagged [cache]
A cache is a local copy of a file that exists elsewhere. Caching can take place in the browser, on a dedicated machine on a network, or at an ISP.
289
questions
1
vote
1
answer
47
views
Cache warming: is fetching the url of the pages enough?
Googling on the topic of cache warming, I see that most approaches consist in automated http calls (get requests) to the pages listed in the sitemap, using a script or command line tool.
But I suppose ...
2
votes
3
answers
239
views
Does React JS Increase Page Load Time
Currently my website only uses HTML, CSS, and JavaScript.
I know that the React JS library is about 30 KB.
I am wondering if that 30 KB will be downloaded from my server by every user who visits my ...
1
vote
2
answers
35
views
Cache control headers vs using CDNs: What's the difference?
We want to implement caching to speed up the website performance.
What would be beneficial in this case - using CDN or Cache control HTTP headers?
0
votes
1
answer
30
views
Can a browser render a website and download its content to show without caching or saving anything to the computer? [closed]
Can a browser render a website without caching anything to the computer and just downloading the website ‘live’? I’m not sure if that is how it works, but in other words can a browser show a website ...
0
votes
1
answer
43
views
Upon clicking on my website link a file downloads [closed]
I'm using hostinger VPS for WordPress hosting (CentOS 7 64bit with CyberPanel
). Wolf plan.
CPU core: 8
RAM: 16GB
Bandwidth: 12TB
But the catch is it's only accessible from my 1 profile on my PC (...
3
votes
1
answer
592
views
Reliability of using query strings to refresh cache
I have seen a number of articles suggesting the use of a query string to force refresh of a cached file. For example, style.css becomes style.css?ver=134, and you update the "version number"...
3
votes
1
answer
230
views
Will Google Optimize work with server side caching and a CDN?
My website is using WordPress + WP Rocket Cache plugin + Cloudflare CDN Cache. Will Google Optmize works with such a case? In my understanding, as Google Optimize will change the web page source file, ...
1
vote
1
answer
119
views
How to cache the html file of redirected website
I have a website A whose content gets updated every minute(Its content is related to stock price). However, because displaying the content of website A requires expensive computation, I want to create ...
7
votes
4
answers
6k
views
How to force users to see new site instead of the cached version?
We've just launched a new website. This was a complete redesign, including a change from a static HTML website, hosted on Server A, to a WordPress site hosted on Server B. (the relevance of that is ...
2
votes
1
answer
152
views
How to use cdn cache with login status in menu?
On my website I have in the header a button called either "Login" or the name of the user if he is logged in with a small avatar. I don't use any cache, so the text for the header is ...
3
votes
0
answers
205
views
litespeed cache works but after some time site gets to redirect into redirect loop
I have a WP one page website on which i enabled light speed cache plugin which improved site performance but on the other side side goes into redirect loop which crashes the site. I was not able to ...
1
vote
1
answer
45
views
Can I tell who is accessing archive.org archived documents from my site from my server logs?
I currently host a website with a collection of some of my projects, where a few of them are currently undergoing a patent review process. I don't want these documents to be public (though they were ...
2
votes
1
answer
329
views
How does hash in file name affect google image search ranking?
In terms of cache optimization it is recommended for static files like images to cache them forever. In this case if you want to update an image you have to use a different file name so that the ...
1
vote
1
answer
144
views
Default cache-control directives (and behaviour) when header returns only private
I just checked the cache-control header returned by webmasters.stackexchange.com. The only directive present in the response is cache-control: private. In this case, what are the default values for ...
6
votes
2
answers
2k
views
Do ISPs cache HTTPS web pages?
Provided I have not set cache-control header to private, can ISPs cache web pages (by respecting max-age) served over HTTPS?
Sorry if I sound naive, but I wanted to know if ISPs somehow can cache and ...
0
votes
1
answer
27
views
Why do servers cache Web pages even though they know the Web page will be changed in the future?
For performance, some Web pages get cached. This is because the server can then speed up page load time:
Without a cached copy
+--SERVER--+ +--CLIENT-...
0
votes
2
answers
48
views
Using Cache to make website faster
I am building a website with node.js express webserver and i use Mongo db database.
On my website people can register a profile they can upload pictures and write text.
Now i hear often that many ...
0
votes
0
answers
131
views
Adsense not showing
This is kind of a strange glitch, but still..? I can’t figure it out. When I go to a question on my database almost every time, the ads don’t show, but when I change the url by adding page.php?...
1
vote
1
answer
126
views
How to determine if APCu is overall lighter than Memcached in a usecase?
I would say that my personal website is at least currently a "small" website.
It is a MediaWiki-based all-core website without images at all and of about 750 webpages of generally no more ...
2
votes
1
answer
797
views
Cache-Control for ads.txt, robots.txt and sitemap.xml files that are generated dynamically
I have some "static files" that I build on the fly, because they are generated dynamically.
ads.txt
robots.txt
sitemap.xml
What is the ideal Cache-Control for those files? PS: My server is ...
4
votes
1
answer
194
views
Use A.jpg if you have it in cache, otherwise use B.jpg?
Let's say I have one page big.html that uses
<img alt="big image" src="big.jpg" width="300" height="300" />
where big.jpg is indeed an image of 300 by ...
1
vote
0
answers
52
views
httpd.conf is cached and no editing is succesful [closed]
I am going to use the WSL system on Windows10 to create a website.
The distro is Ubuntu.
I put httpd.conf in /etc/apache2/conf-available
where there are these two lines (line 40):
Define SRVROOT "...
2
votes
1
answer
170
views
What's the difference between access and access plus in ExpiresByType directive?
I have seen:
ExpiresByType image/jpg "access 1 year"
But also:
ExpiresByType image/jpg "access plus 1 year"
So, what's the difference between those two lines ?
1
vote
1
answer
25
views
What types of files does ExpiresDefault include?
I have:
ExpiresActive On
ExpiresByType image/jpg "access 1 years"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/gif ...
1
vote
2
answers
434
views
How ExpiresByType and Header set Cache-Control works together?
I have:
ExpiresActive On
ExpiresByType image/jpg "access 2 years"
And let's say:
<filesMatch ".(jpg|jpeg|png|gif)$">
Header set Cache-Control "max-age=31536000, ...
1
vote
0
answers
26
views
Understanding mod_expires apache module [closed]
Working with htaccess is a new capitol for me. I have already read about mod_expires here https://httpd.apache.org/docs/current/mod/mod_expires.htm, but I'm stil confused.
I have the next code from ...
1
vote
0
answers
89
views
Understanding .htaccess cache rules [closed]
I talk about cache, and I don't know any cache system that is interested in keeping my files, for me, and for free. And, as I read, there are almost 5 other cache systems triggered when a user/client ...
2
votes
0
answers
23
views
Deleting AMP cache: "The requested URL /update-cache/c/s/whatever was not found on this server"
I want to delete the AMP contents of my 'amp-en.products.example.com' website. I create the following URL to flush the cache
https://amp--en-products-example-com.cdn.ampproject.org/update-cache/c/s/...
0
votes
1
answer
35
views
WP site struggling to refresh
I used to think this was an issue with Google Chrome, when I would struggle to get pages to refresh with their latest CSS styles — despite me having the option set to disable cache when inspector ...
1
vote
1
answer
74
views
How to manage page caching to serve different AdSense units for Mobile and Desktop
I'm trying to cache the pages of my website, which are responsive and show the same contents for Desktop and for Mobile, with the exception of the location of the AdSense units if the visit is from ...
0
votes
0
answers
257
views
Why Google Cache Showing 404 on my React Base Webpages?
My web page is client-side rendered with React.
On hitting the cache, it is showing 404 instead of a rendered page.
Example Screenshot
When I inspect the Page URL on Search Console, Its parsing and ...
3
votes
1
answer
969
views
Large number of hits from IP addresses that reverse lookup to "cache.google.com"
We are seeing a large amount of server requests by IP addresses claiming to be cache.google.com and they are coming from all sorts of (unexpected) countries too. Currently the FW blocks servers that ...
2
votes
1
answer
36
views
How to create a html file offline with app cache
We have an online html file that is accessible through the browser, we want this to be available offline and looking in to it the best thing would be using the App Cache with a manifest file.
I ...
2
votes
1
answer
1k
views
When my origin serves a "304 Not Modified", Cloudflare sends "200 OK" and makes the user download the page again
I'm using Cloudflare to cache certain APIs. I'm setting the below headers in my Origin server:
Cache-Control: public, must-revalidate, max-age=300
Basically, I'm instructing the browser here to cache ...
2
votes
1
answer
71
views
Why is the Google Analytics keyword report showing items that start with "cache:"?
When I check Google Analytics, I see some keywords like cache:2933b974en0J:https://example.com/subservice/well-digging
Why is this showing in google analytics?
What is the problem? How can I solve it?...
1
vote
1
answer
324
views
Why I am not seeing HTTP 304 response codes in my Apache logs?
Why I am not seeing HTTP 304 response code in my Apache logs even though my webpages are sending them? I've checked this in Chrome console:
My goal is to see which browsers are successfully using ...
3
votes
1
answer
135
views
Flush cached selector in Adobe Experience Manager without flushing entire directory
How can I use selector based cache flushing in Adobe Experience Manager?
http://example.com/content/myapp/us/en.child1.xml
http://example.com/content/myapp/us/en.child2.xml
Lets say,we have xml's ...
0
votes
0
answers
106
views
CloudFront For Wordpress Site On EC2
I have an EC2 instance, with LAMP Stack. I'm following this guide for CloudFront setup for a wordpress site.
https://aws.amazon.com/blogs/startups/how-to-accelerate-your-wordpress-site-with-amazon-...
3
votes
0
answers
73
views
Google Search Console reports mobile friendly errors after enabling WordPress caching plugin
I tried to test my site in the google webmaster, I got Mobile usability issue
But when I exclude the Googlebot in my cache plugin it's working properly!
The speed is important so I am trying to send ...
0
votes
1
answer
149
views
Why google is not caching my pages? [duplicate]
Some pages of my website chevy-cars.com are showing the cache button on the right side of the links in google listing and some pages are not for a long time. The pages that are showing cache button ...
1
vote
1
answer
177
views
CDN cached PHP page vs HTML one - Loading speed
Is there any difference at all in terms of loading speed if we have a fully cached PHP generated site (by for example, using CloudFlare rules "Cache everything") and a HTML page?
Cloudflare allows ...
2
votes
1
answer
47
views
I have one website that seems to be cached indefinitely on my Mac
I have a strange problem that I can't seem to find an answer to. I developed a website for a client on my dev server. I uploaded it to their live server when it was ready. This was 2-3 months ago. ...
5
votes
1
answer
4k
views
What headers used in request by google bot?
What headers used in request by google bot? Must be user agent, but what else? I'm interested in cache control headers, does bot try to get fresh page, but not from cache?
The related question: Do ...
5
votes
2
answers
1k
views
Do browsers send different HTTP headers on page reload so that server side caches can be flushed?
I'm implementing caching at the server application level, because my hosting doesn't provide Apache caching modules and it's not possible to use a reverse proxy there. Its cheap and fast hosting, so I ...
1
vote
0
answers
35
views
rel="dns-prefetch" / rel="preconnect" vs far-future expiry headers...?
I've always been a big fan of far-futures expiry headers. First time visit on my site's homepage results in 40 HTTP requests, but a subsequent visit comes in at 1, with a response as snappy as you'd ...
1
vote
0
answers
10
views
Storing session data between servers (and noob guidance) [closed]
First post here, I'm sure this information is somewhere on the web, but the problem is I'm such a noob I don't know what to search for.
So, my problem is that I want to design a sign up API. Let's ...
4
votes
2
answers
138
views
Is it bad for SEO to embed static sections of a page in a JavaScript file so that they can be cached?
Is it a bad idea to embed unimportant static HTML code in a JavaScript file? Could it harm SEO?
For example, the footer or header HTML code is constant and those sections load for many different ...
0
votes
1
answer
93
views
Firefox doesn't update cache of a downloadable zip file. Why?
I have a small website (hosted on a shared Linux/PHP server) where I allow users to download my software. It comes in a form of a ZIP file that people can download. I just noticed today after having ...
1
vote
0
answers
118
views
How to allow Google fonts to be cached for more than one day?
I tried this code below, but I still see the message on Google Insights that the fonts have a expiration of 1d.
AddType application/vnd.ms-fontobject .eot
AddType application/x-font-ttf .ttf
AddType ...
1
vote
0
answers
37
views
Browsers load actual website from external server and keep in cache [closed]
So, currently, I'm using 000webhost to host my website, but they only allow 1000 MB to store all the files for my website, which IMO is a little small.
So, what I want to accomplish is something like ...