Sha256: 5b9abbf90c513b87044549d1e158c69ea67f3b65047d4e03d7ccebaf5c2f2fb3

Contents?: true

Size: 542 Bytes

Versions: 16

Compression:

Stored size: 542 Bytes

Contents

# Rails asset pipeline & webpacker support.
location ~ "^/(assets|packs)/.+-([0-9a-f]{32}|[0-9a-f]{64}|[0-9a-f]{20}|[0-9a-f]{8})\..+" {
    error_page 490 = @static_asset;
    error_page 491 = @dynamic_request;
    recursive_error_pages on;

    if (-f $request_filename) {
        return 490;
    }
    if (!-f $request_filename) {
        return 491;
    }
}
location @static_asset {
    gzip_static on;
    expires max;
    add_header Cache-Control public;
    add_header ETag "";
}
location @dynamic_request {
    passenger_enabled on;
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
passenger-6.0.24 resources/templates/standalone/rails_asset_pipeline.erb
passenger-6.0.23 resources/templates/standalone/rails_asset_pipeline.erb
passenger-6.0.20 resources/templates/standalone/rails_asset_pipeline.erb
passenger-6.0.19 resources/templates/standalone/rails_asset_pipeline.erb
passenger-6.0.18 resources/templates/standalone/rails_asset_pipeline.erb
passenger-6.0.17 resources/templates/standalone/rails_asset_pipeline.erb
passenger-6.0.16 resources/templates/standalone/rails_asset_pipeline.erb
passenger-6.0.15 resources/templates/standalone/rails_asset_pipeline.erb
passenger-6.0.14 resources/templates/standalone/rails_asset_pipeline.erb
passenger-6.0.13 resources/templates/standalone/rails_asset_pipeline.erb
passenger-6.0.12 resources/templates/standalone/rails_asset_pipeline.erb
passenger-6.0.11 resources/templates/standalone/rails_asset_pipeline.erb
passenger-6.0.10 resources/templates/standalone/rails_asset_pipeline.erb
passenger-6.0.9 resources/templates/standalone/rails_asset_pipeline.erb
passenger-6.0.8 resources/templates/standalone/rails_asset_pipeline.erb
passenger-6.0.7 resources/templates/standalone/rails_asset_pipeline.erb