Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [static-content]

The tag has no usage guidance.

1
vote
1answer
49 views

Can I have a cookie-less subdomain, if main website is on root domain but does not set any cookies?

Lets say I have a static website at example.com, it does not set any cookies. I have tracking on stats.example.com and a git server on git.example.com - both of which do set cookies. Static assets ...
1
vote
0answers
46 views

Using the Internet Archive’s Wayback Machine as a CDN

Can the Internet Archive’s Wayback Machine be used as a content-distribution network (CDN)? Aside from the moral problem of stealing bandwidth from an organization I love, would serving a unique file ...
2
votes
0answers
49 views

How get download stats in Matomo analytics for static content that's served by my CDN (Cloudflare)?

I'm considering enabling Cloudflare for my site, which will make it so that static content is loaded from their servers instead of mine. If that's the case, how can I tally the request in our ...
0
votes
1answer
85 views

What if to load duplicated blocks e.g. header and footer by JS

If we use static site generators (SSG) and edit some block duplicated on many pages e.g. header or footer, we need to regenerate all the HTML pages using this block. Regardless of the speed of our SSG,...
5
votes
1answer
148 views

Will it hurt SEO to remove the '.html' extension from static pages such that they get served as 'text/x-generic'?

If we want to go with static website, we generate static html files of pages with names like contacts.html and we may add to our .htaccess file the lines like RewriteEngine On RewriteRule ^(([^/]+/)*[...
0
votes
1answer
25 views

How to replace thousands of old JS ad tags in a directory full of static html? [closed]

We're taking over another company's website and we plan on creating an archived version of their old site using wget to mirror the site into an archive.example.com website. Since there are several ...
1
vote
1answer
74 views

Will disabling javascript be considered as cloaking by Google

There is a site with dynamic content generation (angular). Google is not indexing it well. But it is indexed well with static pages (same content). Static pages are not fast because of page reloading ...
2
votes
1answer
33 views

What should I do with old (project) websites / historic content?

I have a few old websites with some nice content, artist projects. Not relevant for business but quite interesting in a historical way. My feeling says it would be not enought to keep the page alive, ...
1
vote
0answers
41 views

What are the benefits, if any, of redirecting a blog/product category page to a static page?

When it comes to organising a website's layout, I see a lot of resources advising to redirect blog/product category pages to static pages. This static page then becoming the 'parent category' for the ...
0
votes
0answers
6 views

Hosting different parts of website with different providers [duplicate]

I have a Rails application that broadly consists of: Marketing (/about, /pricing etc) Admin (/admin) User profiles (/john-doe/posts, /ella-211/posts) Currently I'm managing my domain with Cloudflare ...
0
votes
0answers
22 views

How to update a website's homepage to use a static AWS S3 site just for the homepage

I have developed the browser based game over at http://ninjawars.net. Currently, the game site homepage is essentially like a single-page app, it is a php backed homepage with an iframe, links to ...
1
vote
0answers
26 views

“Site unreachable” when using asset parallelization with Cloudflare CDN [closed]

I use WordPress site with CDN (Cloudflare). I want to serve static files(images, js, and css) from a different static cookieless domain. I create subdomains in my DNS, but I can't add images or ...
3
votes
1answer
47 views

404 page on a static decommissioned webpage

We have decommissioned an old website and replaced the homepage with a similar static page stating that the offer is no longer available. We are returning the homepage with a 200 header if navigated ...
3
votes
1answer
64 views

Static HTML to CMS: Same URL structure do I need 301 redirect?

I am transferring a website over from static to CMS and the new CMS will have the same URL structure. Do I need to do any 301 redirects or anything else so I don't impact current ranking. Also if I do ...
3
votes
1answer
108 views

How to debug a non working https setup that uses Amazon S3, route53, Cloudfront?

I am setting up a static site with the following: content hosted on S3 (central Europe region) with a custom domain Cloudfront with https route53 for DNS setup redirect http to https redirect www to ...
1
vote
1answer
36 views

Copyright years for page source and page content

My question concerns the difference between the source code of an HTML/CSS/JavaScript file and the content actually displayed by those files in the browser. I've been thinking about using a copyright ...
4
votes
1answer
1k views

What is the 'right way' to serve static content from my AWS S3 bucket on my ElasticBeanstalk deployment?

I've hosted a small PHP environment on AWS ElasticBeanstalk. The static content (.css, .js, .jpg files etc) is inaccessible directly from ElasticBeanstalk, and must come from another source. I've ...
1
vote
1answer
373 views

Is it possible to have CloudFlare cache static files, but only serve them to specific users?

I want to use CloudFlare as a CDN to cache and serve a static file in order to reduce the load on my server, however, the catch is that I only want this file to be served to paid users since it's an ...
0
votes
1answer
64 views

Managing (routing between) two separate servers in the same web app

I am building a website, where the landing page and some other content is based on node, express, angular2 etc. I want to have a subdomain (blog.mydomain.com) which runs Hexo. On my development ...
4
votes
2answers
701 views

Set up a wiki in watch mode with Hugo static site generator?

In the midst of porting an all HTML site to the Hugo static site generator, my boss asked me to add a wiki to the site. The turn around time on this port + addition of a wiki is somewhat short (about ...
0
votes
1answer
48 views

Can generating static links via javascript be legal and recognized?

I have a page of photo thumbnails on my site. On the page, a large number of links are grouped together consecutively, and the links take up at least 1/2 the HTML code size. Here's an example: <...
2
votes
2answers
937 views

How to force a 302 redirect to index.html when hosting on S3?

I've found that the following two URLs will show the same content: http://example.com/blog/ http://example.com/blog/index.html In the case of the first URL, it appears to pick up the index.html from ...
2
votes
2answers
370 views

Is having a static homepage harmful for my SEO?

My homepage is a static page, not a page showing latest posts. Is this harmful for my SEO?
11
votes
1answer
1k views

If I only serve gzipped version of my content, should I add the vary accept encoding header?

I just moved a static site from a VPS to Amazon S3. I have decided to serve only gzipped version of my pages, since S3 is not a webserver I can't have logic based on headers. I also use Cloudfront as ...
1
vote
1answer
100 views

Configuring the document root on a cookieless domain

I am configuring a cookieless domain for all my static content, I see a lot of articles and how-to's use the same document root for as their main domain. Why? This seems like a disadvantage to me, ...
1
vote
1answer
110 views

Is it advisable for SEO to use dynamic pages when static pages can be used?

I am creating a website with around 5 static pages of content and 2-3 dynamic pages for products. The page names for these are product1.asp, product2.asp, and product3.asp. The pages would retrieve ...
1
vote
2answers
1k views

Static vs dynamic website search engine results

I am mobile software developer and I want to create a website like this one. I will have static webpages not dynamic ones (homepage, jobs, about, contact...). When people search on Google with this ...
1
vote
0answers
17 views

Hosting of static content without server, only through CDN [duplicate]

My content is fully static, using only HTML, CSS, JS. It's only one page, which needs to load really fast from any country, and should be online for only 3 months. I already have the domain name. I ...
1
vote
1answer
43 views

What happens when overwriting a static file?

Say you've got a purely static website. It's popular so people are often visiting your index.html. What happens when you use your ftp client to overwrite the file? Will people ever see any odd results?...
1
vote
1answer
156 views

Are the websites hosted on Github restricted to programming?

I was searching about static hosting and I found blog posts talking about hosting their blog on Github, the hosting feature of Github seems pretty good, what I want to know is what type of websites ...
1
vote
1answer
110 views

SEO consideration for downloadable files

I used to serve PDF files as static file: http://domain.com/pdf/file1.pdf and PDF files perfectly indexed by Google and other search engines. Then I decided to change my structure to place pdf files ...
3
votes
1answer
162 views

Should fonts be served from a cookieless subdomain?

Why is it that that nobody ever mentions serving fonts over a cookieless (sub)domain? Is it because you have to white-list your primary domain with Access-Control-Allow-Origin for font files? I'm ...
1
vote
1answer
239 views

Web-based interface for a static CMS [closed]

I would like to have a static CMS, but I need a web interface for the editor. The editor can be a php/python/ruby app hosted off my computer for when I need to edit.
0
votes
1answer
96 views

Should I add some new texts in the existing page or make a new page for them?

I'm going to add new content about Paypal campaign on my site. But its content is not that big enough for a page(50 -100 words). And I'm wondering if I should add it to the existing related page (e.g. ...
2
votes
2answers
777 views

Is there a modern (eg NoSQL) web analytics solution based on log files?

I have been using Awstats for many years to process my log files. But I am missing many possibilities (like cross-domain reports) and I hate being stuck with extra fields I created years ago. Anyway,...
1
vote
1answer
2k views

A WSGI-configured Apache does not serve images from /static or /media (Django), returns 403

I have set up an Apache server with WSGI/Django on it, and everything works fine -- html, css -- but when I try to request an image file, like png, it returns 403 Forbidden. The configuration is as ...
0
votes
1answer
266 views

Static page generator quazi CMS

Are there some mainstream software packages that generate static pages? Sort of like CMS, but without all the fluffy parts. I'm perfectly fine with editing pages using a text editor, but I would like ...
42
votes
4answers
10k views

Why do big sites host their images/css on external domains?

Why do sites like Facebook, Twitter, and Google host their images and css on external domains such as: Facebook: static.ak.fbcdn.net Twitter: a0.twimg.com Google: ssl.gstatic.com Question(s): Is is ...
4
votes
2answers
1k views

Google Analytics setting cookies on static content despite being on entirely separate domain

I recently decided to comply with the YSlow recommendation that static content is hosted on a cookieless domain. As I already use the root of my domain (donaldjenkins.com) to host my website—on which ...
4
votes
1answer
747 views

How can I version-control and deploy a website's static files while preserving timestamps?

I'm using NanoBlogger to generate a website that consists entirely of static files—no PHP or anything similar. I'd like to place the site under version control, which means managing both NanoBlogger'...
7
votes
1answer
100 views

How do I schedule content publication on a static site?

How do I schedule the publication of new content (in this case, press releases) on my static site? I am using FTP (FileZilla) on Windows 7 to do the job manually. I am assuming there are some FTP ...
5
votes
1answer
3k views

How should I reference precompressed versions of static files hosted with Amazon's S3?

I have a website that serves static assets (CSS, JavaScript, images) directly from Amazon's S3. As far as I know S3 does not support gzip even when browsers accept it. What problems might arise if ...
6
votes
5answers
180 views

Is there a good tool for HTML content generation by less technical stakeholders?

I am the webmaster and everything else technical for a tiny startup company. Some static content is being written in MS-Word by stakeholders. What is the best process to get HTML content instead? ...
4
votes
1answer
506 views

Google Analytics on Static Site Hosted by GAE

I finagled hosting a static site on Google App Engine at http://corbyhaas.com The HTML when visiting the URL shows some meta information and a frame to the site's actual address: http://cody-static-...
3
votes
1answer
4k views

How to make CloudFlare cache everything?

I want CloudFlare to cache everything, PHP files too, every request from the domain, I want it to cache it. Is this possible? (There are PHP scripts on the domain that print out images, JS and CSS, ...
14
votes
3answers
5k views

How do Github Pages fare for serving static files?

I have a site that is composed only of static files. I just discovered how easy it is to host websites directly off Github. Any idea how do they fare in terms of latency, reliability, capacity...? ...
4
votes
1answer
1k views

Optimal GZIP compression level for static resources?

Is there a compression level which will provide an optimal balance between file size reduction and client decompression time/cost? I was wondering which GZIP compression level provided the best ...
1
vote
3answers
764 views

What is the impact of a CMS on page load time versus a static site?

I am creating a 20-page site that will go on shared hosting. Each page will be about 20 KB (including HTML, CSS, and images common to all pages). To avoid manually adding navigation elements to each ...
1
vote
3answers
360 views

Script + template to generate static web site?

After giving it more thought, I don't actually need a PHP-based CMS for a small, static web site. Does someone know of a good solution that can run on Windows that would take basic HTML pages and JPG ...
2
votes
3answers
375 views

Static pages for large photo album

I'm looking for advice on software for managing a largish photo album for a website. 2000+ pictures, one-time drop (probably). I normally use MarginalHack's album, which does what I want: pre-...