2017 © Pedro Peláez
 

typo3-flow-package cdn

Provides cdn functionality for TYPO3 Neos 1.2

image

techdivision/cdn

Provides cdn functionality for TYPO3 Neos 1.2

  • Thursday, August 20, 2015
  • by dittertp
  • Repository
  • 9 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Introduction

This package provides a CDN (e.g. cloudfront) functionality for TYPO3 Neos 1.2, (*1)

Installation

you need to add the package to your composer.json, (*2)

``` bash { "require": { "techdivision/cdn": "1.0.*" }, }, (*3)


Install the package: ``` bash composer update techdivision/cdn

Configuration

add this to your settings.yaml, (*4)

``` php TechDivision: Cdn: host: cdn.example.local schema-less: true, (*5)


* `host`: set the domain which should be used as cdn domain. Do not add "http://" or "https://" here * `schema-less`: set to true to use "//" instead of "http://" or "https://" If you are using custom fonts, you need to set a additional header. snippet for Apache with .htaccess: ``` bash <FilesMatch "\.(ttf|otf|eot|woff)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> </FilesMatch>

snippet for Nginx webserver:, (*6)

``` bash location ~* .(eot|ttf|woff)$ { add_header Access-Control-Allow-Origin *; }, (*7)




# Caution! This Packages overrides the *mirrorMode*. If you ever want to switch from `symlink` to `copy` you need to change these settings by adding the following lines to your Project or Site `Settings.yaml`: ``` bash TechDivision: Cdn: resource: publishing: detectPackageResourceChanges: FALSE fileSystem: mirrorMode: copy

Hint

This Package adds to every resource url an query string parameter. So if you are using cloudfront as cdn you should enable Forward Query Strings in the Behavior settings. If you change a Resource, for instance uploading a new image, the query string will change and cloudfront fetches the new version of the image, independently of any cache header settings., (*8)

The Versions

20/08 2015

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/techdivision/TechDivision.Cdn

Provides cdn functionality for TYPO3 Neos 1.2

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

20/08 2015

dev-master

9999999-dev https://github.com/techdivision/TechDivision.Cdn

Provides cdn functionality for TYPO3 Neos 1.2

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

20/08 2015