If you find that PDF files aren’t updating after changes, it could be that they are cached by the browser or a CDN such as Cloudflare.
If you are running on Apache then you can modify the mod_headers block in the /public/.htaccess file to prevent PDF file caching:
# Blocks Search Engine Indexing
Header set X-Robots-Tag "noindex, nofollow"
# Prevents PDF File Caching
Header set Cache-Control no-store
There are many posts around the internet about loading Disqus comments on demand, however, I found many of them either rely on jQuery, try and load the embed.js file via ajax and run into CORS issues or just lack small bits of functionality. So I thought I would put everything together in one gist.
Continue reading “Loading Disqus Comments On Demand Without jQuery or AJAX”
I recently bought a new pc, and was a bit quick to install Windows, create a backup drive and remove the disk to install the larger ssd from my previous computer.
The upshot of that was that, after installing the operating system on the new drive, it wouldn’t activate Windows as I didn’t fully activate it on the first install before making the recovery drive.
In the end, I got in contact with a Windows support person who recovered the activation key from the computer hardware. Which is pretty simple when you know the commands.
To get your key:
Right click on the start menu and select “Command prompt (admin)”
wmic path SoftwareLicensingService get OA3xOriginalProductKey
You should then get your key in the console output.
I recently ran into an issue whilst trying to change the nameservers for a German (.de) domain name. When I tried to point the domain to a whm/cpanel install I got the error ‘Failed to Modify Domain Nameservers: The domain DNS check has failed’.
The reason for this is specific to .de domains.
Continue reading “Issues Assigning Nameservers to .de Domain Names”
There are many articles out there on how DNS prefetching works so I will keep it brief.
It works by adding a link to the head of your web page with a relationship of ‘dns-prefetch’ and the url of a domain which holds assets needed for the page to load. That could be a cdn for the site, a social plugin or anything else.
Without prefetching, a browser will render the page top to bottom and when it gets to an asset which needs to be loaded from another domain it performs a dns lookup to find the location of the host and then downloads the assets. By adding prefetching links we are letting the browser know that these domains will be used before the assets are requested. Browsers can then loook up the hosts whilst rendering the rest of the page, cutting out this step when the assets are needed leding to a shorter download time.
This process is non-blocking and will only be performed when possible. For example, on a small page requesting an asset from another site high in the head of the document, it’s likely that the asset will be loaded before there is a chance to prefetch the dns.
The point of this article is to list domains used by common services for easy future reference.
Continue reading “Standard URLS Called by Websites for DNS Prefetching”
I’ll first start by saying that the title of this book can be somewhat misleading. The author (Mathieu Nayrolles) has written a previous book with the title ‘Instant Magento Performance Optimization How-to’ and from his personal website it looks like the original title for this book was to be ‘Magento Performance Optimization Volume II’ which followed on from that book.
Whilst the optimization techniques in the book are tested on a Magento installation, the same techniques could generally be used on any PHP/MySQL application.
Continue reading “Magento Site Performance Optimization: Book Review”
Packt Publishing are celebrating 10 years in the IT publishing industry by offering unlimited ebooks or videos for $10 each for 10 days.
The offer started on the 26th of June which means tomorrow (July 5th) is the last day of the offer.
Some of the latest Joomla specific books include:
Joomla! 3 Beginner’s Guide Second Edition
Joomla! 3 Template Essentials (Dec 2013)
Learning Joomla! 3 Extension Development-Third Edition (July 2013)
They also have extension specific books, and a wide range of general php development books.
All books are DRM free and come in a range of formats with sample code downloads available.
Only 24 hours left so don’t miss out!
Click here to check out the ebook and video range
Packt Publishing are celebrating their 2000th book title with a ‘Buy One Get One Free’ offer across all eBooks on March 18th – for a limited period only.
That limited period ends today 26th March 2014 so it’s the last chance to pick up some bargains.
They have over loads books on Joomla. Many of them are based on Joomla 1.5 (Joomla Security springs to mind here) but there are also plenty of 2.5/3 books and also an upcoming book on Joomla 3.5.
If you prefer your books made out of paper then there is also a reason to take advantage of this offer. When you have purchased an ebook, you can upgrade it to a paperback through your account with a 50% discount. Effectively 25% of all paperback books.
Search the Books
For a while now in Google webmaster tools there has been an option under the ‘optimization’ tab called ‘Data Highlighter’. This is their new attempt at an alternative to structured data (or another way to add it without changing the structure of your pages).
It is essentially a wizard interface to get Google to understand your pages better than they do right now.
Continue reading “Using Google’s Data Highlighter Tool”