The present invention comprises compositions, methods and devices for creating an infection-mimicking environment within a polymer scaffold to stimulate antigen-specific dendritic cell activation. Devices of the present invention are used to provide protective immunity to subjects against infection and cancer.