Questions tagged [static-content]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
43
votes
5answers
11k 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 ...
26
votes
4answers
8k views

What's the best way to version CSS and JS URLs?

As per Yahoo's much-ballyhooed Best Practices for Speeding Up Your Site, we serve up static content from a CDN using far-future cache expiration headers. Of course, we need to occasionally update ...
21
votes
13answers
7k views

Allowing customers to edit static website via WYSIWYG

I've set a few clients up with Adobe (formerly Macromedia) Contribute to edit static html content. Add the comments to prevent them from causing too much damage and it works okay: <!-- ...
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...? ...
12
votes
5answers
318 views

Should JavaScript referenced in the head section be served from the same hostname as the main document?

I was under the impression that for the best performance, Javascript should be treated as static content and served from a cookieless domain along with CSS files, images, etc. But Google says here: ...
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 ...
10
votes
2answers
669 views

How many domains to split components across?

I understand how splitting components across domains can maximize parallel downloads, and enable you to have cookie-free static content domains, but since there's a time cost for each domain lookup ...
7
votes
1answer
101 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 ...
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? ...
6
votes
1answer
1k views

No mod_expires or mod_headers in apache, how can I cache images/js/css files?

Title says it all, we do not have control over our server environment and although we can request for them to recompile apache for us it will not happen overnight. Is there anything we can do is ...
6
votes
1answer
4k views

Can I expect browsers to cache static content served over SSL encryption?

With all the talk about FireSheep I am thinking of switching my web applications to use full https accross the entire site. However, I am concerned about caching. I use a lot of JavaScript, CSS files, ...
5
votes
1answer
407 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 ^(([^/]+/)*[...
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 ...
5
votes
1answer
779 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'...
4
votes
7answers
5k views

Offline CMS for Static Web Sites [closed]

I have a friend that wants a desktop-based content management system -- one that publishes entirely to static HTML (and images, CSS, etc). What are the best options?
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 ...
4
votes
2answers
827 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 ...
4
votes
1answer
508 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-...
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 ...
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, ...
3
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 ...
3
votes
1answer
173 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 ...
3
votes
1answer
73 views

Cost effective way to provide static media content

I'd like to be able to deliver around 50MB of static content, either in about 30 individual files up to 10MB or grouped into 3 compressed files, around 5k to 20k times a day. Ideally I'd like to put ...
2
votes
2answers
1k 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
3answers
386 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-...
2
votes
1answer
18 views

Is it possible to have a site that uses WordPress with some pages that don't

I am redoing an old static html site in WordPress and that's all fine, but there is a section of the site that is in a subdirectory that would be fine to keep the static html. I am building the ...
2
votes
2answers
430 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?
2
votes
1answer
160 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 ...
2
votes
2answers
788 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,...
2
votes
1answer
37 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, ...
2
votes
1answer
48 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 ...
2
votes
1answer
81 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 ...
2
votes
1answer
123 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 ...
2
votes
0answers
79 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 ...
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
2answers
193 views

How to create / find static targeted ads

I'm not sure how to ask the right question but I noticed on this website, each post has very specific targeted ads that fit the overall theme of the blog post. www.ma-petite-chou.com I'm only ...
1
vote
1answer
79 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
1answer
134 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 ...
1
vote
1answer
115 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
1answer
44 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
3answers
810 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
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 ...
1
vote
1answer
402 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 ...
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
114 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 ...
1
vote
1answer
240 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.
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 ...
1
vote
3answers
361 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 ...
1
vote
2answers
3k views

Using CDN vs having your own static server, and how it's done?

I would like to speed up my site and am considering moving all static files and user uploaded content to a separate server. I have an option to use a CDN or to setup my own static server and serve ...
1
vote
1answer
259 views

What's the best way to version CSS and JS URLs - part 3

this is a follow up question to this one What's the best way to version CSS and JS URLs - part 2 If I have my static files on Amazon cloudfront and have the file's URLs mentioned in my code. How will ...