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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
39 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 (...
user avatar
3 votes
1 answer
152 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"...
user avatar
0 votes
0 answers
17 views

Running If Statement in NGINX website configuration files

Im trying to use an if statement that allows me to ignore headers only when caching a request. This is the code I implemented ( on /etc/nginx/sites-available/example.com) : if ($skip_cache = 0) { ...
user avatar
1 vote
1 answer
77 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, ...
user avatar
  • 389
1 vote
1 answer
47 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 ...
user avatar
4 votes
3 answers
387 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 ...
user avatar
  • 4,803
2 votes
1 answer
31 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 ...
user avatar
  • 337
2 votes
0 answers
46 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 ...
user avatar
  • 669
0 votes
1 answer
35 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 ...
user avatar
2 votes
1 answer
141 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 ...
user avatar
1 vote
1 answer
51 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 ...
user avatar
  • 2,233
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 ...
user avatar
  • 2,233
0 votes
1 answer
20 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-...
user avatar
0 votes
2 answers
36 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 ...
user avatar
0 votes
0 answers
83 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?...
user avatar
1 vote
1 answer
68 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 ...
user avatar
1 vote
1 answer
325 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 ...
user avatar
4 votes
1 answer
175 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 ...
user avatar
1 vote
0 answers
24 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 "...
user avatar
  • 111
2 votes
1 answer
54 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 ?
user avatar
  • 127
1 vote
1 answer
21 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 ...
user avatar
  • 127
1 vote
2 answers
119 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, ...
user avatar
  • 127
1 vote
0 answers
25 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 ...
user avatar
  • 127
1 vote
0 answers
67 views

Understanding htaccess cache rules [closed]

Ok. I've read a lot and I understand almost nothing. 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 ...
user avatar
  • 127
2 votes
0 answers
16 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/...
user avatar
  • 423
0 votes
1 answer
32 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 ...
user avatar
1 vote
1 answer
46 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 ...
user avatar
  • 423
0 votes
0 answers
117 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 ...
user avatar
3 votes
1 answer
501 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 ...
user avatar
  • 653
2 votes
1 answer
25 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 ...
user avatar
  • 21
2 votes
1 answer
516 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 ...
user avatar
  • 133
2 votes
1 answer
51 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?...
user avatar
1 vote
1 answer
195 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 ...
user avatar
2 votes
1 answer
87 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 ...
user avatar
0 votes
0 answers
57 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-...
user avatar
  • 101
2 votes
0 answers
61 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 ...
user avatar
0 votes
1 answer
97 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 ...
user avatar
1 vote
1 answer
84 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 ...
user avatar
  • 317
2 votes
1 answer
37 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. ...
user avatar
3 votes
1 answer
2k 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 ...
user avatar
  • 585
5 votes
2 answers
642 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 ...
user avatar
  • 585
1 vote
0 answers
31 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 ...
user avatar
1 vote
0 answers
9 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 ...
user avatar
  • 111
4 votes
2 answers
121 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 ...
user avatar
0 votes
1 answer
62 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 ...
user avatar
  • 141
1 vote
0 answers
99 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 ...
user avatar
1 vote
0 answers
36 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 ...
user avatar
2 votes
3 answers
6k views

JavaScript and CSS cached and not updating not updating from WAMP server even though "view source" shows most recent file

I have a WAMP server with PHP 7.2.10. When I change a file, for example .css, the changes is not visible in browser. When I "view source" via my browser (Ctrl+U) I get the updated latest version of ...
user avatar
  • 29
0 votes
1 answer
63 views

Cannot find where my site is being cached! [closed]

So I have a bit of experience as a web master, but am at my whits end trying to find out what is caching my site. I cannot see any updates I make for the life of me. What I've tried: Clear ...
user avatar
  • 121
3 votes
0 answers
2k views

Disable caching for subdomain on Cloudflare?

How can I disable caching for a subdomain on Cloudflare but keep SSL?
user avatar
  • 131

1
2 3 4 5 6