2017 © Pedro Peláez
 

neos-package resourceshortener

URL Shortener for public resources

image

ttree/resourceshortener

URL Shortener for public resources

  • Wednesday, January 10, 2018
  • by ttree
  • Repository
  • 2 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Resource Link Shortner

This package allow to create "short link" for package static resources., (*1)

Install

composer require ttree/resourceshortener

Configure

Neos:
  Flow:
    http:
      chain:
        process:
          chain:
            'Ttree.ResourceShortener:Shortener':
              componentOptions:
                sites:
                  'website':
                    'manifest.webmanifest':
                      resource: 'resource://Ttree.Website/Public/Manifest.webmanifest'
                      headers:
                        'Content-Type': application/manifest+json
                        'Cache-Control': max-age=2592000
                    'sw.js':
                      resource: 'resource://Ttree.Website/Public/Scripts/ServiceWorker.js'
                      headers:
                        'Content-Type': text/javascript

In the configuration website is the root node name for the current site. With this configuration, Manifest.webmanifest is available at https://domain.com/manifest.webmanifest and ServiceWorker.js at https://domain.com/manifest.webmanifest., (*2)

You can use the headers section to send custom HTTP headers., (*3)

Warning: For performance reason it's better to configure the rewritte in your HTTP Server (Apache, Nginx, Caddy, ...). But sometimes you don't have access to those configuration so this package can be useful., (*4)

Acknowledgments

Development sponsored by ttree ltd - neos solution provider., (*5)

We try our best to craft this package with a lots of love, we are open to sponsoring, support request, ... just contact us., (*6)

License

The MIT License (MIT). Please see LICENSE for more information., (*7)

The Versions

10/01 2018

dev-master

9999999-dev

URL Shortener for public resources

  Sources   Download

MIT

The Requires

 

10/01 2018

0.1.0

0.1.0.0

URL Shortener for public resources

  Sources   Download

MIT

The Requires